DEV Community

Cover image for TexCreate V2 Beta 1
Mustafif
Mustafif

Posted on

3 2

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.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more