Skip to content

dancer1325/cpp-draft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10,443 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

========================== C++ Standard Draft Sources

  • goal
    • sources / generate C++ standard's drafts
      • ❌!= ISO publication❌

Getting Started |

Mac OS X

  • install
    • MacTeX distribution
    • if you are | slow network,
    • sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex xstring
      • Problems:
        • Problem1: "sudo: tlmgr: command not found"
          • Solution: Add TeX Live to PATH:
            export PATH="/usr/local/texlive/2023/bin/universal-darwin:$PATH"
            # Add to ~/.zshrc or ~/.bash_profile for permanent fix
            echo 'export PATH="/usr/local/texlive/2023/bin/universal-darwin:$PATH"' >> ~/.zshrc

Debian-based Systems

Install the following packages::

sudo apt-get install latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern

Fedora

Install the following packages::

dnf install latexmk texlive texlive-isodate texlive-relsize texlive-ulem texlive-fixme texlive-extract texlive-l3kernel texlive-l3packages texlive-splitindex texlive-imakeidx

Arch Linux

Install the following packages::

pacman -S make texlive-latexextra texlive-binextra texlive-plaingeneric texlive-fontsrecommended

Microsoft Windows

Install Perl (for example, using a Cygwin installation <https://cygwin.com/install.html>_ and adding perl. See sample instructions <https://bennierobinson.com/programming/2016/01/24/perl-windows-2016.html>_ for more details)

Install MiKTeX <https://miktex.org/download>_

Alternatively, you can install WSL <https://learn.microsoft.com/en-us/windows/wsl/install>_ and a Linux distribution, and follow the instructions for Linux above.

💡how to generate the output file?💡

  • | source,
    • make
      • generate a "std.pdf"

Generated input files

To regenerate figures from .dot files, run::

make

For example::

make figvirt.pdf

Verifying input and output when making changes

While in the source directory, you can check for common mistakes such as misaligned comments with::

../tools/check-source.sh

After typesetting the document, you can also check the output for further problems with::

../tools/check-output.sh

GitHub Actions will also run these checks when you create a pull request, but it's often faster if you run them locally first.

how to study these ".tex" files | source?

converting -- to -- .md

  • ways
    • attempt1: pandoc containers.tex -o containers.md
    • attempt2: pandoc source/containers.tex -o source/containers_improved.md --from=latex --to=markdown --wrap=none --preserve-tabs --markdown-headings=atx
    • attempt3: pandoc source/containers_clean.tex -o source/containers_clean.md --from=latex --to=markdown --wrap=none
  • Problems:
    • Problem1: NOT pretty clear .md

About

C++ standards drafts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 84.4%
  • HTML 14.8%
  • Pug 0.4%
  • Shell 0.2%
  • C++ 0.1%
  • sed 0.1%