Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gdoc2latex
Advanced tools
Readme
Converts Google Docs files to LaTeX. Try it in your browser with the gdoc2latex GUI.
npm i -g gdoc2latex
File > Download > Web page (.html)
gdoc2latex -i YourDocumentName.html
Supported:
\section
\subsection
\subsubsection
\subsubsubsection
\textbf
\underline
\textif
\textsuperscript
\textsubscript
\centering
\raggedleft
itemize
enumerate
index.bib
and \cite
s it\footnote
\\
\pagebreak
\href
\hyperref
\caption
\caption
\caption
Not supported:
(these aren't definitely out of scope, but they haven't been implemented yet)
See help with gdoc2latex --help
:
$ gdoc2latex --help
Usage: gdoc2latex [options]
Converts Google Docs files to LaTeX
Options:
-i, --input <file> Input HTML file, downloaded from Google Docs (default: "index.html")
-o, --output <file> Output TeX file (default: "index.tex")
-f, --force Overwrite output TeX file if it already exists and create output directory if necessary (default: false)
-s, --template-start <file> Custom starting template TeX source
-e, --template-end <file> Custom ending template TeX source
-h, --help display help for command
For example:
gdoc2latex --input doc.html --output doc.tex --force --template-start mystart.tex --template-end myend.tex
The input HTML file should be downloaded from Google Docs with File > Download > Web page (.html)
The template start should set up and open a LaTeX document and the end should close a LaTeX document. See the default_templates
folder for examples.
gdoc2latex will output two files: a .tex
and .bib
With pdflatex and bibtex, index.tex
and index.bib
can be compiled with:
pdflatex -shell-escape index
bibtex index
pdflatex -shell-escape index
pdflatex -shell-escape index
This will result in a complete index.pdf
npm install
From here you can edit the code. You can run the tests with npm test
, or check it builds with npm run build
. To install it locally for further testing on your own files, run npm run build
then npm install -g
.
Versions follow the semantic versioning spec. Use npm version <major | minor | patch>
to bump the version, then push. Ensure you have set follow tags option to true with git config --global push.followTags true
. GitHub actions will then pick it up and handle the actual publishing to the NPM registry.
FAQs
Converts Google Docs files to Latex
The npm package gdoc2latex receives a total of 1 weekly downloads. As such, gdoc2latex popularity was classified as not popular.
We found that gdoc2latex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.