Saravanan666/pypi-org huggingface dataset:
Package: latex-proj-tool
Latex Project Managment ToolA toolset to traverse and manipulate a Latex project with multiple .tex files.
Here are the currently supported functionalities. You are welcome to contribute more features :)Project flattenFlatten a Latex project to a single .tex file. This is useful if you want to
use latexdiff or other Latex tools that require a single .tex file.This is mainly inspired by
this post:http://dropbearcode.blogspot.com/2011/09/multiple-file-latex-diff.htmlUsage with latexdiffMake sure you have Perl 5.8+ in your environment.Downloadlatexdifffromhttps://www.ctan.org/tex-archive/support/latexdiffunzip latexdiffpython3 -m latex_proj_tool flat old_project/main.tex --output old.texpython3 -m latex_proj_tool flat new_project/main.tex --output new.texlatexdiff old.tex new.tex > temp.texsed 's/^M//' tmp.tex > diff.texCompilediff.texto get the PDF.List Unused FilesList all unused files to help you clean the project.UsageList all unused files in this project:python3 -m latex_proj_tool find_unused my_project/main.texList all unused files in this project, excluding some files:python3 -m latex_proj_tool find_unused my_project/main.tex --exclude-extensions cls,sty,bstList all unused files in this project, excluding some directories:python3 -m latex_proj_tool find_unused my_project/main.tex --exclude-dirs backup
Package: latexqol
latexqolA module for moving data into LaTeX formated text.
Under construction. Currently only 1 function.Example useTo copy a simple Latex formated table from a list of data arrays to you clipboardfromlatexqolimportcopy_tableheaders=["header1","header2","header3"]col1=[1,2,3]col2=[4,5,6]col3=[7,8,9]copy_table(headers,col1,col2,col3)
Package: latex-render
Latex RenderRenders LaTeX for markdown file, include Github READMEInstallationMake sure that you have Python 3.6.1 or above and pip installed. To installlatex_render, you'll just need to run:pipinstalllatex_renderUsageOnce you've installedlatex_render, you can run the command-line interface either with thelatex_rendercommand$latex_render-h
usage:latex_render[-h][--version]-iINPUT_FILE_PATH[-oOUTPUT_FILE_PATH][-typeTYPE]RunLatex_render

optionalarguments:-h,--helpshowthishelpmessageandexit--versionshowprogram'sversionnumberandexit-iINPUT_FILE_PATH,--iINPUT_FILE_PATHInputfilepath;-oOUTPUT_FILE_PATH,--oOUTPUT_FILE_PATHOutputfilepath,ifnotprovided,useinputfilepathinstead;-typeTYPE,--typeTYPERendertype,1:usecodecogs.com2:userender.githubusercontent.com(default=1);Citingcite this repo@misc{latex_render,
  author = {kebo},
  title = {latex_render},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/bo-ke/latex_render}},
  commit = {master}
}
Package: latex-rubber
This is a building system for LaTeX documents. It is based on a routine that
runs just as many compilations as necessary. The module system provides a
great flexibility that virtually allows support for any package with no user
intervention, as well as pre- and post-processing of the document. The
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
makeindex. A good number of standard packages are supported, including
graphics/graphicx (with automatic conversion between various formats and
Metapost compilation).
Package: latexSAK
LatexSAKLaTeX swiss army knifeInstallpip install latexSAK --upgradeYou need the following commands available on your computer:latexpanddelatex (brew install opendetex)awkzipFeaturesRunlatexSAK -hto show all the options available.latexSAK first removes all commands listed incommandsToIgnore.json. This file is generated in the current folder the first time the command is executed. You can then edits the commands to ignore by editing this file that will be loaded upon running the command again.commandsToIgnore.jsondefines 4 levels of command to ignore that can be set using the-leveloption. The default level is 1.Number of words --countCount the number of wordsclean the tex file and figures --cleanCreates a clean version of the document, using image files actually used.zip --zipCreates the zip archive of the previously cleaned folder (articleclean/).Get text --textGet text only and creates the filearticleTextOnly.mdCaptions --captionsGet captions from images and tables that use the \Description command fromacmart.
Package: latex-subfigs-combiner
LaTeX Subfigs CombinerPython script for combining LaTeX figures composed of subfiguresWhatThis package provides a simple Python script for combining LaTeX figures composed of subfigures into single PDF files, i.e. one PDF per composite figure.WhyIf you have ever tried to publish on scientific journals, you have probably encountered at leastonejournal that either does not accept LaTeXsubfiguresor will combine your composite figures during production with a very high chance of making a mess (both scenarios are completely unreasonable, but yet they happen sometimes).
Of course, you really like those shiny composite LaTeX figures and do not want to waste time painstakingly stitching them together by hand (e.g. using Inkscape).
This Python script provides an hands-free automated solution to this problem.HowThe job is done by parsing the given TeX file, extracting the preamble, setting the page style to empty, extracting thefigureenvironments that containsubfigures, compiling to a PDF vialatexmk, and then crop each figure to a separate PDF file usingpdfcrop.InstallationEasy peasy viapipor equivalentpipinstalllatex-subfigs-combinerUsageIn a terminal, simply runcombine-subfigson your LaTeX main filecombine-subfigs/path/to/my/awesome/paper.texThis will produce all the composite figures in a directory namedcomposite-figuresat the location you called the script from.By default, the output figures will be named asfig_1.pdf,fig_2.pdf, etc.
If you want to change the output directory or the filename prefixfig_of the figures, you can use the optional arguments--target_dirand--prefix, respectively.
Executecombine-subfigs -hfor more details.Tips are welcomed! :love_you_gesture:If you found this useful, feel free to offer me a beer :beer: viaPayPalorsend me a few sats:zap:.
Package: latextable-lite
latextable-liteLatextable-lite is a Python package that can create simple Latex tables. It is heavily based onLatextable, but removes latextable's dependency onTexttable.FeaturesDraws a table in a Latex format using tabularx formatting.The output is correctly indented for directly copying into Latex.Supports multiple header rows and multi-column header rows.Installationpip install latextable-liteUsageThe single functionlatextable_lite.utils.draw_latexreturns a formatted Latex string based on the provided table.
Aside fromrows, all arguments are optional.def draw_latex(rows, 
            num_headers=1, 
            multi_column_size=None, 
            caption=None, 
            caption_above=False,
            label=None,
            c_line=False):
    """
    :param rows: 2d list containing all entries of the table in row-first format
    :param num_headers: Number of header rows
    :param multi_column_size: List describing how many columns correspond to each entry in the first header row
    :param caption: A string that adds a caption to the Latex formatting
    :param caption_above: Boolean indicating if caption is above the table
    :param label: A string that adds a referencing label to the Latex formatting
    :param c_line: Boolean; if true, cmidrules are drawn for every other row
    
    :return: The formatted Latex table returned as a single string.
    """ExamplesA basic example is given below. For more see the examples directory.Code:from latextable_lite import utils

if __name__ == "__main__":
    rows = [["Name", "Age", "Sex", "Nickname", "Occupation", "Marital Status"],
            ["Xavier", "32", "M", "Xav'", "Doctor", "Married"],
            ["Baptiste", "1", "F", "Baby", "Baby", "Single"],
            ["Louise", "28", "M", "Lou/Loue", "Engineer", "Single"]]
    print(utils.draw_latex(rows))Output:\begin{table}[ht]
        \centering
        \renewcommand{\arraystretch}{1.5}
        \begin{tabularx}{\textwidth}{lXXXXXX}
                \toprule
                        Name & Age & Sex & Nickname & Occupation & Marital Status\\
                        \hline
                        Xavier & 32 & M & Xav' & Doctor & Married \\
                        Baptiste & 1 & F & Baby & Baby & Single \\
                        Louise & 28 & M & Lou/Loue & Engineer & Single \\
                \bottomrule \\ 
        \end{tabularx}
\end{table}
Package: latex-todo-gen
latex-todo-genExtract all TODOs and FIXMEs from LaTeX project.Usage-h, --help                Show this help message and exit
--outfile OUTFILE
-o OUTFILE                Output file.
                          Supported extensions: md, tex, pdf.
                          Default: TODO.md
--directories DIRECTORIES
-d DIRECTORIES            Comma separated list of directories.
                          Default: text
--files FILES
-f FILES                  Comma separated list of files.
                          Defaults to none.
--keywords KEYWORDS
-k KEYWORDS               Comma separated list of keywords.
                          Default: FIXME,TODO,NOTE
--scheme SCHEME           Color scheme for output PDF file.
                          Options: light, plain, mariana, marianne, dark.
                          Default: light
--description DESCRIPTION Set output file description.
                          Default: Statistics for this LaTeX project.
--footer FOOTER           Set file footer.
                          Defaults to link to this project.Multiple output files supported:Markdown (.md). This is a default.LaTeX (.tex).PDF (.pdf). Generates.texfile and converts it using thelatexpackage.Several color schemes for output PDF are supported (seeGitlab docs page).Examples# Use default settingslatex-todo-gen# Set custom keywordslatex-todo-gen-k"REVIEW,FIXME,TODO,NOTE"# Set description and output file as PDFlatex-todo-gen--description"This file is generated on every commit."-o"WIP.pdf"# Set source directories and one main filelatex-todo-gen-d"src,settings"-f"main.tex"# Set color scheme for output PDFlatex-todo-gen-o"TODO.pdf"--schememarianneLimitationsLaTeX sometimes fails when it tries to render a UTF-8 character it doesn't know. The\lstsetin the template tries to encode most of diacritics for european alphabets, as well as some of the common characters. If you encounter an error, let me know via issues.ContributingPRs are welcome.I'm currently looking for:pre-commit: I haven't been able to make it work, it seemed not to be able to locate the python script.Load setup from config file. Maybe.todo-gen.yaml?Universal TODO generator. This has proven to be much more universal program: you can just swap latex'%with python's#and you've got python-todo-gen. I'm probably migrate it sometime, but for now, it's just latex.Multiple lines below the keyword:# TODO3would append three lines instead of one
Package: latextomd
latextomdA simple python package to convert latex to markdown (katex)Documentation:https://latextomd.netlify.com/InstallationpipinstalllatextomdBasic usagelatextomd-isource.tex-oexport.mdRequirements (Windows 10)miktexpandocperl:http://strawberryperl.com/choco install berrybrewImage Magick:https://imagemagick.org/choco install imagemagick
Package: latex-to-myst
LaTeX to MyST Pandoc FilterLatex-to-MyST implements a pandoc filter that converts a subset of LaTeX
environments to MyST directives. Although it is probably more pandoc compatible
to write a custom pandoc writer instead of usingRawBlocksandRawInlineto
mimics one, the existence ofpanflutemakes it much easier for python
developers like me to work with filters instead of writers.To use this filter, install the package by:pip install latex_to_mystwhich adds a clilatex2myst, which can be used to convert latex file to
myst by calling:latex2myst latex_file.tex markdown_file.mdLaTex Environments to MyST DirectivesLatex-to-Myst Current supports:Allamsthmblocks,Display MathSubplots in the form of{list-table}.Many LaTeX environments need to be converted in to MyST directives.amsthmfor example, can be visualized using theexperimentalSphinx-proof Directives.Unfortunately, MyST does not have native support for subplots, and neither
doespandoc. To circumvent the problem, the best solution for now is to
use a{list-table}directive. However,this still needs to be fixedas there are someknown issuesthat need to be addressed.Work in Progress / Known IssuesThere are someknown issuesneed to be addressed.CreditsThis module usespanfluteheavily.History0.0.1 (2021-11-04)First release on PyPI.
Package: latextractor
La TeXtractor – Get your LaTeX zipped up!Do you find yourself sometimes in need of a neat and clean zip archive with the
essential artefacts of your LaTeX project? Maybe to submit it along with the
camera-ready PDF of your paper?The times when you manually cleaned out your project directory are over!We present:La TeXtractora tool that takes care of everything for you (no
warranty!!)UsageSimply runtextract -m paper.tex camera-ready.zipand you are done.Really, that's almost it. Check outtextract --helpfor the more advanced
power-user features likeinclude additional files (like a copyright form)get a directory with all files in the zip for extra reassuranceHow it worksTo be honest: It's not hard. LaTeX's-recorderoption does the heavy lifting
by listing all files that are accessed during a build run.
La TeXtractor just takes all (non-global) build assets from that list and zips
them up.
To make sure that everything that is needed for a build is included, La
TeXtractor test the build on a copy of the zip,
and prints a reassuring success message if all goes right.
Package: latextree
ThelatextreePackageCreates a document object model for LaTeX and provides some useful functions. The parser understands the syntax of most common macros but is NOT a replacement for a full LaTeX engine. The parser should only be invoked only after the input has been successfully compiled under LaTeX.Example:>>>fromlatextree.parserimportLatexParser>>>pa=LatexParser()>>>filename="/path/to/main.tex"">>>doc=pa.parse_latex_file(filename)>>>doc.make_website()# create website>>>bbqs=doc.bbq()# extract mc/ma questions in Blackboard format (plain text)>>>docx=doc.root.get_xml()# create xml document>>>fromlxmlimportetree>>>print(etree.tostring(docx,pretty_print=True))Iflatextreeis installed as a package:>>>importlatextree>>>filename="/path/to/main.tex"">>>doc=load(filename)>>>doc.make_website()# create website>>>bbqs=doc.bbq()# extract mc/ma questions in Blackboard format (plain text)>>>exit()StandardsThe following are yet to be implemented properly.Exception handlingTestingLoggingDocumentationmake_website>>>doc.make_website(copy_static=True,copy_figures=True,WEB_ROOT=None)By default, the website is created in a folder calledweb-latexmainfilenamein the directory containing the main latex source file. . The output directory can be changed by setting the WEB_ROOT variable.html files are written to WEB_ROOTstyle files are copied to WEB_ROOT/static/css. These can be modified post-production.figures are copied to WEB_ROOT/static/imgurls are constructed from chapter and/or section numbers (if any)TemplatesTheLatexDocument.make_website()function usesjinja2templates.scripts.htmlloads theMathJaxandjqueryCDNs from cloudflare.node.htmldoes most of the work. This needs to be broken up.Static filescss/: The stylesheets are rough-and-ready and need a lot of work (especially for phones and tablets).img/: Image files are copied into here.js/:  Currently contains only a simple show/hide function.Modulesbibliography: wrapper forbibtexparsercontent: content nodesdocument:LatexDocumentclass and output functionsfactory: creates node classes and objectsltree: command line toolsmacrosdef: macro definitions forpylatexenc.latexwalkernode: base class forLatexTreeNodeobjects.parser:LatexParserclass. CreatesLatexDocumentobjects.preprocessor: prepare latex source forpylatexenc.latexwalker(replace $$...$$ etc.)reader: input functions and utilitiessettings: website settings (e.g. mathjax cdn)tabular: parse tabular environments.taxonomy: register of species (e.g.list) and genera (e.g.itemize).walker: wrapper forpylatexenc.latexwalker.Dependenciesbibtexparserjinja2lxmlpylatexencTest filesThetexdirectory contains:LatexTreeTestBookfor testing thebookdocument classLatexTreeTestArticlefor testing thearticledocument classLatexTreeTestExamfor testing theexamdocument classExisting software for Latex processingpylatexencLaTeX -> Unicodepython packageplasTeXLaTeX -> XML and XHTMLpython packagetex4htLaTeX -> XML, HTML and Braille!java and c librariesprovides ahtlatexcmd to replace latex.pandocLaTeX -> HTMLhaskell librarytralics (INRIA)LaTeX -> XML
Package: lathe
`lathe <http://lathe.readthedocs.io/>`__=====Basic machine learning tools for BYU CS478... image:: docs/images/lathe.gif:align: center.. inclusion-marker-do-not-removerequirements-------------  `python2.7 <https://www.python.org/downloads/>`__ or `python3.3+ <https://www.python.org/downloads/>`__-  `pip <https://pip.pypa.io/en/stable/installing/>`__ (*optional*)installation------------::pip install latheusage-----.. code:: pythonimport latheargs = lathe.parse_args()attributes, data, targets = lathe.load(args.file, label_size=1)documentation-------------http://lathe.readthedocs.io
Package: lathermail_client
lathermail_clientPython API client forlathermailSMTP server.Usage:fromlathermail_clientimportLathermailClientuser,password="user","password"url="http://127.0.0.0:5000/"client=LathermailClient(user,password,url)print(client.get_inboxes())print(client.get_messages(recipients_address="to@example.com"))print(client.get_single_message("some_id"))
Package: latinex-sdk
latinex_sdkPython SDK for basic interactions with the Latinex APIDeveloped by Rodolfo Blasserhttps://www.linkedin.com/in/rodblasser/UsageThis is a prototype SDK and it's not being currently maintained.Examplefromlatinex_sdk.generic_utilsimportUtilitiesasutils# Test Connectivitytest=utils.whois()print(test)# Welcomegreetings=utils.welcome()print(greetings)# Register (get an API Key)email="example1@mail.com"get_key=utils.register(email)print(get_key)# Paramsfecha_inicio="2023-05-28"fecha_fin="2023-06-28"tipo_emision="BONOS"key=get_key[1]# Querydata=utils.get_historic(key,fecha_inicio,fecha_fin,tipo_emision)
Package: latinisation
Latinisation APIThe APU to latinise non latin strings. For now, it only supports Armenian, but it will soon expand to other langugages too.InstructionsInstall:pipinstalllatinisationLatinise Armenian text:fromlatinisationimportarmenianarmenian.armenian_latinisation(some_input)Example of a program that uses the latinisation API:fromlatinisationimportarmenian# Ask the user to input a sting of Armenian letterssome_input=input("Input some Armenian letters: ")# Convert the user inputed sting to a string of latin letters using the APIarmenian.armenian_latinisation(some_input)# Print out the latinised version of the inputed stringprint(some_input)
Package: latino
LatinoLatino è una libreria python che traduce dal latino usando ilDizionario Latino.Latino is a python library that translates latin text by making requests to theOnline Latin Dictionary.Written for Python 3.8+.pipinstalllatinolatino.TranslatorYou have to create an instance ofTranslatorto use this APIParameters:lang- language to be translated tosettings(available from the next releases)translate(text, **kwargs)Translate text from latin to destination language\Parameters:text(str; string sequence) - The latin source text(s) to be translated.Return type:list[Translated]Return type:list[list[Translated]] (when a list is passed)Basic usage:>>>fromlatinoimportTranslator>>>translator=Translator()# lang="it" (italian default)>>># translator.translate returns a list of all possible translations>>>puella=translator.translate("puella")[0]# let's get the first result>>>puella.lemmapŭella>>>puella.grammaticasostantivofemminileIdeclinazione>>>puella.paradigma# might not exist[puellă],puellae>>>puella.traduzione['bambina','ragazza','fanciulla','amante','donna amata','sposa','giovane donna','figlia','schiava']>>>puella.table(){'FEMMINILE':{'PLURALE':['Nom.puellae','Gen.puellārum','Dat.puellis','Acc.puellas','Abl.puellis','Voc.puellae'],'SINGOLARE':['Nom.puellă','Gen.puellae','Dat.puellae','Acc.puellam','Abl.puellā','Voc.puellă']}}fromlatinoimportTranslator# Translator() takes as arg a lang between "it"/"en"/"fr"translator=Translator("en")# Gonna print possible meaning for "es"fortranslatedintranslator.translate("es"):print(translated.traduzione[0])to eat
to befromlatinoimportTranslatortranslator=Translator("fr")text="pulchram puellam sum"# any string sequence such as list can also be taken as argument!foriintranslator.translate(text.split()):print(i[0].paradigma)[pulcher], pulchră, pulchrum
[puellă], puellae
[sum], es, esse, fuilatino.modelslatino.models.TranslatedMembers:grammatica- grammarlemma- lemmaparadigma- paradigmtraduzione- list of translationstable()Returns the Declension table or the Conjugation tablelatino.LANGUAGES# languages which can be translated fromLANGUAGES={'it':'italiano','en':'english','fr':'francais'}Licenza | LicenseMIT
Package: latin-paradigm-finder
ItalianoParadigmi !Hai un noioso compito di scrivere tutti i paradigmi presenti in una versione? Questo è lo script che fa per te! Trova tutti i paradigmi di una versione, togli loro gli accenti e salvali in una pratica lista in un batter d' occhio!InstallazioneInstalla Python3Installa pipEsegui il comandopip install latin_paradigm finderse non funziona, allora scrivipip3 install latin_paradigm_finderScrivi sul tuo terminaleparadigmiSe volete delsupporto tecnicopotrei rispondervi tardi, potete anche aprire una issue qui su GitHub.Example videoEnglishLatin paradigm finderIntroductionThis code helps to find the paradigms present in a Latin version, and to create a text file of them.It works by webscrapingDizionario Latino Olivettiand checking if every word of the version is a verb. It can also find disambiguation pages and let you choose.It makes a database where all  the words information is stored, so it doesn't webscrape too much.Installation ( compile from source )The code is cross platform, I will soon upload how to install on Windows and MacOSSteps for Ubuntu 20.04Open a terminal with CTRL + ALT + TCopy and paste these commands for installationsudo apt-get install python3 python3-pip gitgit clone https://github.com/bortox/latin_paradigm_finder && cd latin_paradigm_finder && sudo python3 setup.py install && cd ../ && sudo rm -rf latin_paradigm_finderInstallation ( pip3 )Open a terminal with CTRL + ALT + TCopy and paste these commands for installationsudo apt-get install python3 python3-pip gitsudo pip3 install latin_paradigm_finderShort video of compiling from sourceOpen the programTypeparadigmiin your terminal to open the programEnjoy the time saved to you by this paradigm finder script!
Package: latin-scansion
🏛️ Latin scansion engine 🏛️This library uses finite-state grammars to automate Latin scansion, with an
initial focus on the dactylic hexameters of Virgil.LicenseThe engine is released under an Apache 2.0 license. Please seeLICENSE.txtfor details.InstallationCondais recommended for a reproducible environment. Assuming
that Conda (either Miniconda or Anaconda) is available, the following command
creates the environmentscansion.conda env create -f environment.ymlThis only needs to be done once. The following command then activates the
environment.conda activate scansionThis second step needs to be repeated each time you start a new shell.InstallationCompile the grammar assets:make -j -C grammarsGenerate the textproto library:make -C latin_scansionInstall the Python library:pip install -e .Command-line toolsInstallation produces two command-line tools:latin_scanscans a document, generating a
human-readabletextprotorepresentation of document's scansion. Sample usage:latin_scan --far grammars/all.far data/Aeneid/Aeneid01.txt data/Aeneid/Aeneid01.textprotolatin_validatevalidates (and
optionally, canonicalizes) a textproto document scansion. Sample usage:latin_validate data/Aeneid/Aeneid01.textprotoTestingRun:pytest testsAuthorsJillian ChangKyle Gorman