Tex: Difference between revisions

DHCP (talk | contribs)
m prefix commands with "$" and use syntax highlighting
DHCP (talk | contribs)
m fix indentation
 
Line 8: Line 8:


TeX-documents are not What-you-see-is-what-you-get, but written in plain text, containing tags, commands and functions that instruct the TeX-engine how to lay out the text (or figures or anything else) on the page.
TeX-documents are not What-you-see-is-what-you-get, but written in plain text, containing tags, commands and functions that instruct the TeX-engine how to lay out the text (or figures or anything else) on the page.


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 95: Line 94:


<syntaxhighlight lang=nix>
<syntaxhighlight lang=nix>
    pkgs.texlive.combine {
pkgs.texlive.combine {
      scheme-medium = pkgs.texlive.scheme-medium // {
  scheme-medium = pkgs.texlive.scheme-medium // {
        pkgs = pkgs.lib.filter
    pkgs = pkgs.lib.filter
          (x: (x.pname != "apxproof"))
      (x: (x.pname != "apxproof"))
          pkgs.texlive.scheme-medium.pkgs;
      pkgs.texlive.scheme-medium.pkgs;
      };
  };
   
 
      apxproof = { pkgs = [(pkgs.runCommand "apxproof" {
  apxproof = { pkgs = [(pkgs.runCommand "apxproof" {
        src = pkgs.fetchurl {
    src = pkgs.fetchurl {
          url = "https://raw.githubusercontent.com/PierreSenellart/apxproof/1ac14c47b8351b693ca05eec73dca1332a517ac9/apxproof.sty";
      url = "https://raw.githubusercontent.com/PierreSenellart/apxproof/1ac14c47b8351b693ca05eec73dca1332a517ac9/apxproof.sty";
          sha256 = "sha256-XSgtXsOwhMu2Wo4hVp8ZfaPWgjEEg3EBn5/BhD3xkMA=";
      sha256 = "sha256-XSgtXsOwhMu2Wo4hVp8ZfaPWgjEEg3EBn5/BhD3xkMA=";
        };
    };
        passthru = {
    passthru = {
          pname = "apxproof";
      pname = "apxproof";
          version = "1.2.3";
      version = "1.2.3";
          tlType = "run";
      tlType = "run";
        };
    };
      }
  }
      "
  "
        mkdir -p $out/tex/latex/apxproof/
    mkdir -p $out/tex/latex/apxproof/
        cp $src $out/tex/latex/apxproof/apxproof.sty
    cp $src $out/tex/latex/apxproof/apxproof.sty
      ")]; };
  ")]; };
    }
}
</syntaxhighlight>
</syntaxhighlight>