Saravanan666/pypi-org huggingface dataset:
Package: latex-dependency-scanner
Featureslatex-dependency-scanner is a package to detect all required files to compile a LaTeX
document.Installationlatex-dependency-scanner is available onPyPIandAnaconda.org. Install it
with$pipinstalllatex-dependency-scanner#or$condainstall-cconda-forgelatex-dependency-scannerUsageThe package contains two functions.Scanscan()accepts a path-like object or a list of path-like objects which point to.texdocuments. The return is a collection of paths related to this document.importlatex_dependency_scannerasldspaths=lds.scan("document.tex")For dependencies which cannot be found and which have no file extension (like graphics
in\includegraphics), all possible candidates are returned.PDFcompile_pdf()allows to conveniently generate PDFs with Python. The function is mainly
used for validating test cases.importlatex_dependency_scannerasldslds.compile_pdf("document.tex","document.pdf")ChangesConsult therelease notesto find out about what is new.
Package: latexdiffcite
What islatexdiffcite?latexdiffciteis a wrapper aroundlatexdiffto make citations diff properly:latexdiffciteis a wrapper aroundlatexdiffwhich, before callinglatexdiff, replaces (in temporary files!) citation commands such as\cite{...}with written-out formatted references. It does this by looking up references in a corresponding.bibfile or.bblfile and formatting them according to a user-specifiable configuration.latexdiffwill then properly mark changes in the citations. The citation format can be heavily customized to match what you are already getting from LaTeX/BibTeX.Quick startlatexdiffis required, but you of course already have that installed and working, right? :-)Install withpip:pip install latexdiffciteTo compare two.texfiles on disk, use thefilesubcommand like this:latexdiffcite file FILE_OLD FILE_NEWTo compare two revisions (commit hash, tag, branch, etc.) of a.texfile in a git repository, use thegitsubcommand like this:latexdiffcite git FILE REV_OLD [REV_NEW] [FILE_NEW]REV_OLDandREV_NEWcan be commit hashes, tags, branches, etc.REV_NEWis optional, and defaults toHEAD(the latest committed version).FILE_NEWis optional, and is used when the new filename/path is different than the oldDocumentationFor customization and advanced usage, seelatexdiffcite.readthedocs.org.Changelog1.0.6 (2017-02-26)Fix bug where temp files has not finished writing before calling latexdiff1.0.5 (2017-02-21)Fix crash when LaTeX commands were used in pre-notes and post-notes1.0.4 (2015-06-08)Minor readme/doc changes1.0.0 (2015-06-08)First release on PyPI.
Package: latex-dirtree-gen
latex-dirtree-genLaTeXdirtreegenerator, inspired by the Perl versionlatex-dirtree-generatorbyDanny Koppenhagen.In order to use output of this program in your LaTeX document, make sure you've included thedirtreepackage:\usepackage{dirtree}Usageusage: latex-dirtree-gen [args] directory

positional arguments:
  directory            project root

optional arguments:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit
  -H/--include-hidden  show files and directories starting with "."
                       (default: False)
  -i/--ignore IGNORE   comma separated list of directories and files to be ignored
                       (default: )
  -d/--depth DEPTH     how many directories should the program descend
                       (default: 5)
  --color              in stdout, draw directories in red (with no effect on generated LaTeX code)
                       (default: False)
  --dots               draw "\dots" inside folders at depth limit
                       (default: False)ExamplesLet's assume the following file structure:. (project root)
+- .git
|  '- (git files and directories)
+- pdf
|  '- cover.pdf
+- text
|  +- 01-introduction.tex
|  +- 02-content.tex
|  +- 03-literature.tex
|  '- 99-other.tex
+- .gitignore
+- main.pdf
+- main.tex
'- README.mdWith default settings, the program will output:$ latex-dirtree-gen .
\dirtree{%
 .1 .
 .2 pdf.
 .3 cover.pdf.
 .2 text.
 .3 01-introduction.tex.
 .3 02-content.tex.
 .3 03-literature.tex.
 .3 99-other.tex.
 .2 main.tex.
 .2 main.pdf.
 .2 README.md.
}Following command will display shallow list with the depth of one. Directories at depth limit will have\dotsinside them. The argument--colorhas no effect on the LaTeX output and only draws directories in red in the stdout, for easier orientation in the output (and cannot be shown here because of markdown limitations).$ latex-dirtree-gen -d 1 --dots --color .
\dirtree{%
 .1 .
 .2 pdf.
 .3 \dots.
 .2 text.
 .3 \dots.
 .2 main.tex.
 .2 main.pdf.
 .2 README.md.
}You can show the.gitdirectory and.gitignorefile, but hide thepdfdirectory:$ latex-dirtree-gen -H --ignore pdf -d 1 .
\dirtree{%
 .1 .
 .2 .git.
 .3 \dots.
 .2 text.
 .3 \dots.
 .2 .gitignore.
 .2 main.tex.
 .2 main.pdf.
 .2 README.md.
}ContributingIf you find an error or have an improvement idea,file an issue!
Package: latexdocs
latexdocs- A document generation solution for LaTeXlatexdocs is a Python library with the goal of making the generation of LaTeX documents as easy as possible. It builds onPyLaTeX, but offers a different approach to structuring your document or writing custom extensions.DocumentationClickhereto read the documentation.InstallationThis is optional, but we suggest you to create a dedicated virtual enviroment at all times to avoid conflicts with your other projects. Create a folder, open a command shell in that folder and use the following command>>> python -m venv venv_nameOnce the enviroment is created, activate it via typing>>> .\venv_name\Scripts\activatelatexdocscan be installed (either in a virtual enviroment or globally) from PyPI usingpipon Python >= 3.7:>>> pip install latexdocsInstalling latex on different operating systems is well describedhere.Basic ExampleThe equivalent of theexampleprovided by the folks atPyLaTeXwould be the following:fromlatexdocsimportDocument,TikZFigure,ImagefrompylateximportAlignat,Matrix,Math,Tabular,Plotfrompylatex.utilsimportitalicimportnumpyasnpimage_filename='image.png'doc=Document()doc['Some basic content'].append('Some regular text and some')doc['Some basic content'].append(italic('italic text. '))doc['Some basic content'].append('\nAlso some crazy characters: $&#{}')doc['Some basic content','Math that is incorrect'].append((Math(data=['2*3','=',9])))a=np.array([[100,10,20]]).TM=np.matrix([[2,3,4],[0,0,1],[0,0,2]])content=Math(data=[Matrix(M),Matrix(a),'=',Matrix(M*a)])doc['Another section','Correct matrix equations'].append(content)table=Tabular('rc|cl')table.add_hline()table.add_row((1,2,3,4))table.add_hline(1,2)table.add_empty_row()table.add_row((4,5,6,7))doc['Some basic content','Table of something'].append(table)agn=Alignat(numbering=False,escape=False)agn.append(r'\frac{a}{b}&= 0\\')agn.extend([Matrix(M),Matrix(a),'&=',Matrix(M*a)])doc['Another section','Alignat math environment'].append(agn)fig=TikZFigure(plot_options='height=4cm, width=6cm, grid=major')fig.append(Plot(name='model',func='-x^5 - 242'))coordinates=[(-4.77778,2027.60977),(-3.55556,347.84069),(-2.33333,22.58953),(-1.11111,-493.50066),(0.11111,46.66082),(1.33333,-205.56286),(2.55556,-341.40638),(3.77778,-1169.24780),(5.00000,-3269.56775),]fig.append(Plot(name='estimate',coordinates=coordinates))doc['Another section']['Beautiful graphs'].append(fig)img=Image(filename=image_filename,position='h!',caption='A simple structure.',width='350px')doc['Another section']['An image'].append(img)# doc.build() returns a pylatex.Document instancedoc.build().generate_pdf('basic_example',compiler='pdflatex')ContributingSince latexdocs builds on PyLaTeX, we suggest you to contribute to that package and enjoy the result here.TestingTo run all tests, open up a console in the root directory of the project and type the following (requires theunittestlibrary to be installed)>>> python -m unittestLicenseCopyright 2022 Bence Balogh, underthe MIT license.
Package: latex-document-reader
LaTeX Document ReaderA Python library for reading LaTeX documents and processing BibTeX files.InstallationYou can install the library using pip:pipinstalllatex-document-readerUsageReading LaTeX Documents
To read a LaTeX document, create an instance of the LaTeXDocumentReader class, passing the file path of the document as a parameter. Then, use the read_document method to retrieve the content of the document.fromlatex_document_readerimportLaTeXDocumentReader# Create an instance of LaTeXDocumentReaderdocument_reader=LaTeXDocumentReader('path/to/your/document.tex')# Read the LaTeX documentcontent=document_reader.read_document()# Print the contentprint(content)Reading BibTeX FilesTo process a BibTeX file, use the read_bibtex method of the LaTeXDocumentReader class, passing the file path of the BibTeX file as a parameter.fromlatex_document_readerimportLaTeXDocumentReader# Create an instance of LaTeXDocumentReaderdocument_reader=LaTeXDocumentReader('path/to/your/document.tex')# Read a BibTeX filebibtex_content=document_reader.read_bibtex('path/to/your/references.bib')# Print the BibTeX contentprint(bibtex_content)Making the File Human-ReadableThe library also provides a make_readable method that can be used to process the content of a LaTeX document or any other text and make it human-readable. You can customize the method according to your specific requirements.fromlatex_document_readerimportLaTeXDocumentReader# Create an instance of LaTeXDocumentReaderdocument_reader=LaTeXDocumentReader('path/to/your/document.tex')# Read the LaTeX documentcontent=document_reader.read_document()# Make the content human-readablereadable_content=document_reader.make_readable(content)# Print the human-readable contentprint(readable_content)LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: latexexpr
LaTeX ExpressionTheLaTex Expressionis a python module for easy LaTeX typesetting of algebraic
expressions in symbolic form with automatic substitution and result computation.It was originally written byJan Stranskyfrom Czech Technical University, Faculty of Civil Engineering, Department of
Structural Mechanics, but the latest update was done in 2015.UsageInstall using pippip install latexexprEnjoyimport latexexpr
v1 = latexexpr.Variable('H_{ello}',3.25,'m')
print(f'$$ {v1} $$')
v2 = latexexpr.Variable('W^{orld}',5.63,'m')
print(f'$$ {v2} $$')
e1 = latexexpr.Expression('E_{xample}',v1+v2,'m')
print(f'$$ {e1} $$')LinksDocumentationOriginal webpageOriginal documentationLicenseThe project is released underLGPL v3
Package: latexexpr-efficalc
LaTeX ExpressionTheLaTex Expressionis a python module for easy LaTeX typesetting of algebraic
expressions in symbolic form with automatic substitution and result computation.It was originally written by Jan Stransky
from Czech Technical University, Faculty of Civil Engineering, Department of
Structural Mechanics, but the latest update was done in 2015.It was updated and posted by Jakub Kaderka in 2022 at the forked repo.This fork has then been modified for the application of displaying engineering
calculations with the calculation package efficalc.LinksDocumentationForked RepoOriginal webpageOriginal documentationLicenseThe project is released underLGPL v3
Package: latex-flatten
🗜️ Flatten the file structure of a LaTeX document✨ What can it do?replace\input{FILE}with contents ofFILEpoint all\includegraphics{PATH}next to the .tex filereplace\bibliographywith contents of.bblfile (--replace-bib, needed e.g. for PLoS)Rename figure filenames likefig3.pdf(--sequential-figures)Hide figures by commenting\includegraphics{}(--hide-figures, needed for PLoS)copy all source files next to the LaTeX file (--inplace)modify your LaTeX file in-place (--inplace)make a new folder with the flattened LaTeX project structure (--outdir MYDIR)make a ZIP file with the flattened LaTeX project structure (--zip)These steps are necessary for some Journals (e.g. Springer, PLoS, etc.).
Withlatex-flatten, one can work flexibly on a manuscript with a nested structure and included files and flatten the project only before submission.📝 TODO - Known Issues - Planned FeaturesHave--hide-figuresand--sequential-figuresoperate only withinfigureenvironments. The currently don't know whether they're manipulating an actual figure or just a random included graphic anywhere.Use relative (not absolute) symlinks for linking to--outdir.Find input files fromTEXINPUTS🐛 If the same graphic file is\includegraphicsed multiple times, it will only land once in the outdir or ZIP.❓ UsageYou can run this tool if you havenixinstalled:nixrungitlab:nobodyinperson/latex-flatten# or with arguments (note the lonely double dash --)nixrungitlab:nobodyinperson/latex-flatten----helpOtherwise, you can install it like any other Python package, e.g. withpipor betterpipx:pipxinstalllatex-flatten# latest development versionpipxinstallgit+https://gitlab.com/nobodyinperson/latex-flattenThis installs thelatex-flattencommand:# will operate on all *.tex documents in this folderlatex-flatten# specific documentlatex-flattenmyfile.tex# Make a ZIP for PLoS submissionlatex-flatten--plos--zip# Make a new folder with flattened LaTeX structure (to check compilation, etc.)latex-flatten--outdirFLATTENED# Make a flat ZIP from your LaTeX projectlatex-flatten--zip# Be moreo chatty, useful for debugginglatex-flatten-vvv# Helplatex-flatten--help🛠️ WorkflowCompile LaTeX successfully withlatexmkorpdflatex -recorderonceRun this script next to (or on) the.texfile.Before using--inplace, you should probably back up your files or git-track them to see the differences and revert in case something unexpected happens.
Package: latexify-py
latexifylatexifyis a Python package to compile a fragment of Python source code to a
corresponding $\LaTeX$ expression:latexifyprovides the following functionalities:Libraries to compile Python source code or AST to $\LaTeX$.IPython classes to pretty-print compiled functions.FAQsWhich Python versions are supported?Syntaxes onPythons 3.7 to 3.11are officially supported, or will be supported.Which technique is used?latexifyis implemented as a rule-based system on the officialastpackage.Are "AI" techniques adopted?latexifyis based on traditional parsing techniques.
If the "AI" meant some techniques around machine learning, the answer is no.Getting startedWe prepared aGoogle Colaboratory notebookthat provides several examples to use this package.See also the officialdocumentationfor more details.How to ContributeTo contribute to this project, please referCONTRIBUTING.md.DisclaimerThis software is currently hosted onhttps://github.com/google, but not officially
supported by Google.If you have any issues and/or questions about this software, please visit theissue trackeror contact themain maintainer.LicenseThis software adopts theApache License 2.0.
Package: latex-input
LaTeX InputApplication that allows you to input special symbols anywhere using LaTeX-style inputs.Makes inputting special symbols much easier and not limited in scope to a LaTeX editor or PDF.∮𝑩⋅𝒅𝒍 = 𝜇₀𝐼∯𝑫⋅𝒅𝑺 = 𝛷ₑ = 𝑄ₑₙᶠʳᵉᵉ𝑃 ⟹ 𝑄 ⟺ ¬𝑃 ∨ 𝑄∃ 𝑥 ∈ ℝ | 𝑥² = 𝑥easy 𝑖𝑡𝑎𝑙𝑖𝑐 or 𝒃𝒐𝒍𝒅 or 𝓈𝒸𝓇𝒾𝓅𝓉 or 𝔉𝔯𝔞𝔨𝔱𝔲𝔯 or 𝕕𝕠𝕦𝕓𝕝𝕖-𝕤𝕥𝕣𝕦𝕔𝕜Just typeCapsLock+Sin any application, enter your desired LaTeX, then pressSpaceto convert the entered text.Data about character variants is parsed directly from UnicodeData.txt, which can be easily updated with the latest version to keep up to date.InstallationRequires Python ≥ 3.10pip install latex_inputUnicodeData.txt retrieved fromhttps://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt
Package: latexipy
LaTeXiPyGenerate beautiful plots for LaTeX using your existing Matplotlib-based code.You can also use this package to generate plots without using LaTeX. Just don’t runlp.latexify().Free software: MIT licenseDocumentation:https://latexipy.readthedocs.io.UsageTo plot in Python:importlatexipyaslplp.latexify()# Change to a serif font that fits with most LaTeX.withlp.figure('filename'):# saves in img/ by default.draw_the_plot()To display in LaTeX:\usepackage{pgf}\input{filename.pgf}See theexamplesdirectory for some example code, their resulting images, as well as an example LaTeX file and its outputPDF.FeaturesAutomatically generate multiple plot types, such as PDF, PNG, and PGF for LaTeX.Works with all Matplotlib-based packages, including Seaborn and Pandas.Allows for easily changing the style temporarily.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.1 (2017-08-24)Fix README rendering for Github and PyPI.1.0.0 (2017-08-24)First release on PyPI.
Package: latex-ji18n
latex-ji18n (LaTeX + Jinja2 + YAML = i18n)Set of tools to render LaTeX documents in multiple languages usingJinja2Python library and some conventions inspired byjekyll-multiple-languages-plugin.So you have a LaTeX document that you want to internationalize. The first step
is convert your project in a template. Usinglatex-ji18ncommand line tool,
you can render YAML files into LaTeX Jinja2 templates.InstallYou need apdflatexbinary available at your system PATH. Then run:pipinstalllatex-ji18nSeparation of data, style and layoutNext structure of directories is the workflow that imposes this utility
working with it:├── _config
 │   ├── data.yml
 │   ├── layout.yml
 │   ├── style.yml
 │   └── _private    (optional)
 │       ├── data.yml
 │       └── layout.yml
 ├── dist
 │   ├── en.pdf
 │   ├── es.pdf
 │   └── fr.pdf
 ├── _i18n
 │   ├── _private    (optional)
 │   │   └── es.yml
 │   ├── en.yml
 │   ├── es.yml
 │   └── fr.yml
 └── src
     ├── template.tex
     ├── assets.jpg
     └── references.bibThe process is simple, you write your replacements insrc/template.texJinja2 template file with\BLOCK{}and\VAR{}syntax, write your
data or options inside_i18n/and_config/folders YAML files,
runlatex-ji18nto compile the PDFs and you will see each one for each
language indist/folder.Convention for separate data files_private/: Directories that stores all the sensitive data that you don't
want to include, for example, sharing your repositorie with GIT. This folders
are totally optional. Inside each one, you must keep the same files structure
that in_i18n/and_config/directories.data.yml: Data that you want to include in the context, at the root
of the dictionary, common to all languages. All the fields stored here are
included at the root of the context. You can't include the fieldslayoutnorstylein the root of the context for data files.layout.yml: Designed to store some layout options for the template. Fields
stored here are available for the context in thelayoutdictionary.style.yml: Designed to store style options for the template. Fields
stored here are available for the context in thestyledictionary._i18n/{language}.yml: Overrides data for the context. Designed to localize
your data output. An output file will be created for every{language}.ymlfile, with the name of{language}.pdf.Context creationThe contexts are created updating a dictionary iterating over files in next
order:config/data.ymlconfig/layout.ymlconfig/style.ymlconfig/_private/data.ymlconfig/_private/layout.ymlconfig/_private/style.yml_i18n/{language}.yml_i18n/_private/{language}.ymlContext data is dumped following next rules:All the data located indata.ymlfiles is dumped at the root of the
context.Data located inlayout.ymlfiles are dumped into alayoutvariable
at the root of the context.Data located instyle.ymlfiles are dumped into astylevariable
at the root of the context.Ifsrc/directory contains.bibfiles, database entries located at this
files will be available ordered by entry type at_bibdbvariable at the root
of the context.
Package: latexmake
latexmake.py==========Overview--------Latexmake completely automates the process of generatinga LaTeX document. Given the source files for a document,latexmake issues the appropriate sequence of commands togenerate a .dvi or .pdf version of the document.Latexmake can run as a custom builder for the Eclipse-Plugin"Texlipse". Latexmake also has the ability to run in thebackground watching source files for changes and rebuildinga project when changes happen.URL: http://bitbucket.org/JanKanis/latexmake/Based on latexmk.py at https://github.com/schlamar/latexmk.pyInspired by http://ctan.tug.org/tex-archive/support/latexmk/Installation------------Preferable via pip::pip install latexmakeFor source installation you need`distribute <http://pypi.python.org/pypi/distribute>`_ or`setuptools <http://pypi.python.org/pypi/setuptools>`_Usage-----::$ latexmake [options] [filename]For details run::$ latexmake -hLicense-------GPL version 3 or later.
Package: latexman
Installpip install latexmanQuick StartIn LaTeX (as opposed to classic TeX) You should use \(123\) and \[ 123\] environments instead of $123$ and $$123$$ respectively.Seehttps://tex.stackexchange.com/questions/510/are-and-preferable-to-dollar-signs-for-math-modeThe functionconvert_dollar_sign_to_latex_counterpart()helps converting $123$ in math mode to \(123\) and $$123$$ to \[123\]from latexman import convert_dollar_sign_to_latex_counterpart as conv

filepath = 'main.tex'
conv(filepath)
Package: latexmk-pipe
latexmk-pipeA simple python-script in the spirit of rubber_pipe.py to be able to use latexmk with pipes. The makefile should work on any Linux distribution (use INSTALL_DIR variable to specify directory in which installlatexmk-pipe).You can use it to pass options "on the fly" to an existing LaTeX file. For instance:echo "\PassOptionsToClass{answers,grades}{exam} \input{exam150128.tex} | latexmk-pipe > exam150128.sol.pdfTemporary files are deleted if no errors are produced during the compilation process. The-outdiroption can now be used.
Package: latexmk.py
OverviewLatexmk.py completely automates the process of generating
a LaTeX document. Given the source files for a document,
latexmk.py issues the appropriate sequence of commands to
generate a .dvi or .pdf version of the document.Inspired byhttp://ctan.tug.org/tex-archive/support/latexmk/InstallationPreferable via pip:pip install latexmk.pyFor source installation you needdistributeorsetuptoolsUsage$ latexmk.py [options] [filename]For details run:$ latexmk.py -hLicenseMIT, see LICENSE for more details.
Package: latex-ocr-server
Latex OCR ServerA protobuf-based service to generate latex equations from image files.See the.protofilefor the interface.Installationpip install https://github.com/lucasvanmol/latex-ocr-server/releases/download/0.1.0/latex_ocr_server-0.1.0-py3-none-any.whlInstallation directly from pypi will be available as soon as I'm able tomake an accountUsageusage: python -m latex_ocr_server start [-h] [--port PORT] [-d] [--cache_dir CACHE_DIR] [--cpu]

optional arguments:
  -h, --help            show this help message and exit
  --port PORT
  -d, --download        download model if needed without asking for confirmation
  --cache_dir CACHE_DIR
                        path to model cache. Defaults to ~/.cache/huggingface
  --cpu                 use cpu, otherwise uses gpu if availableGPU supportpytorchmust be installed with CUDA support. Seehttps://pytorch.org/get-started/locally/.You can check if gpu support is working withlatex_ocr_server info --gpu-availableDevelopmentBuildhatch buildLocall Installpip install ./dist/latex_ocr_server-0.1.0.tar.gz