DEV Community

Cover image for TexCreate V2 Beta 1
Mustafif
Mustafif

Posted on

TexCreate V2 Beta 1

The first iteration of TexCreate Version 2 will be creating the new config, and with this will cause a complete rewrite to the project since everything stems from it, so what's the new change?

There's no more Document and Project, it's all Config. So here's the new Config struct and how it's going to work.

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Config {
    author: String,
    title: String,
    date: String,
    project_name: String,
    template: String,
    paper_size: String,
    font_size: u8,
    packages: Vec<String>,
    language: Option<String>,
    only_files: Option<bool>,
}
Enter fullscreen mode Exit fullscreen mode

All Document and Project field are inside, and there's two more field language and only_files.

Following the next few releases, these will be utilized, but the idea for language is either LaTeX (default) or MaTeX.

Project Structure

For only_files it's default will be false, and here are the different project structures:

// New Structure 
Project/
   out/
      pdf/
   src/
      <name>.tex
      structure.tex
   README.md
   build.toml

// Only Files Structure or Legacy Structure 
Project/
   <name>.tex 
   structure.tex
Enter fullscreen mode Exit fullscreen mode

Beta 1 will also introduce a migrate command to turn a v1 config.toml to v2.

More news will follow about future releases of v2 betas.

Top comments (0)