GithubHelp home page GithubHelp logo

jasedit / simple_templates Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 162 KB

Simple Report template as an example for the papers_base system.

License: BSD 3-Clause "New" or "Revised" License

TeX 100.00%
scriptorium ieee-paper-template scriptorium-template

simple_templates's Introduction

Simple Templates

This repository contains a few example templates to use with scriptorium, which provides a system by which LaTeX templates can be integrated in a MultiMarkdown workflow for writing academic papers more easily.

Installation

Clone this repository into the templates directory of scriptorium:

scriptorium template -i https://github.com/jasedit/simple_templates

Usage

In the metadata header of a paper created using the scriptorium new -t report command, the last two lines of the metadata in paper.mmd should look akin to:

latex input: report/setup.tex
latex footer: report/footer.tex

Where report in both lines is the template in use.

simple_templates's People

Contributors

jasedit avatar rjgriffin42 avatar

Watchers

 avatar  avatar

Forkers

rjgriffin42

simple_templates's Issues

Wrong Fig handle in conference mode

When using the conference template, the output should be reference figures as "Fig.", as well as in the caption, rather than "Figure", according to the IEEE style guide.

\bibliographystyle command in footer.tex appears to fail

The \bibliographystyle command throws an error when attempting to include a bibliography file in a mmd using the report template. The relevant error is located below.

(/simple_templates/report/footer.tex

! Package biblatex Error: '\bibliographystyle' invalid.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.4   \bibliographystyle{ieeetr}

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on paper.log.

Report template has an incomplete \iffalse

Traceback attached below.

Ryans-MacBook-Pro-2:scriptorium ryan$ scriptorium build papers/report_test/ -o papers/report_test/report
LaTeX conversion failed with the following output:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./paper.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/Users/ryan/.scriptorium/templates/./simple_templates/report/setup.tex
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/report.cls
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2015/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/local/texlive/2015/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2015/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/hyperref.cfg))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2015/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2015/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/geometry/geometry.sty)
No file paper.aux.
(/usr/local/texlive/2015/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
geometry driver: auto-detecting
geometry detected driver: pdftex
[1{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]pdfTeX
warning (ext4): destination with the same identifier (name{page.1}) has been a
lready used, duplicate ignored

\relax
l.44 \input{\abstract}
[1])
! Incomplete \iffalse; all text was ignored after line 48.

\fi
l.3 \input{report/setup.tex}

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on paper.log.

Traceback (most recent call last):
File "/usr/local/bin/scriptorium", line 9, in
load_entry_point('scriptorium==2.0.0', 'console_scripts', 'scriptorium')()
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scriptorium-2.0.0-py2.7.egg/scriptorium/main.py", line 102, in main
args.func(args)
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scriptorium-2.0.0-py2.7.egg/scriptorium/main.py", line 17, in build_cmd
shutil.move(pdf, args.output)
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 294, in move
os.rename(src, real_dst)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Margins incorrect on IEEEtran conference template

The margins and column widths are not correct for ieee conference papers, when setting up \mycolumns = twocolumn, \mydocclass = conference.

When lines 41 is commented out, excluding the geometry package, the margins and column widths are correct.

ieeetran has an incorrect item "Use of \@item doesn't match its definition"

Traceback from LaTex output and python output shown below.

Ryans-MacBook-Pro-2:scriptorium ryan$ scriptorium build papers/ieee_paper_test -o ieee_paper
LaTeX conversion failed with the following output:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./paper.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/Users/ryan/.scriptorium/templates/./simple_templates/ieeetran/setup.tex
(/Users/ryan/.scriptorium/templates/./simple_templates/ieeetran/IEEEtran.cls
Document Class: IEEEtran 2012/11/21 V1.8c by Harald Hanche-Olsen and Anders Chr
istensen
-- Based on V1.7a by Michael Shell
-- See the "IEEEtran_HOWTO" manual for usage information.
-- http://www.michaelshell.org/tex/ieeetran/
(/usr/local/texlive/2015/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
** ATTENTION: Single column mode is not typically used with IEEE publications.
-- Using 8.5in x 11in (letter) paper.
-- Using PDF output.
-- This is a 10 point document.
) (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2015/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/local/texlive/2015/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2015/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/hyperref.cfg))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2015/texmf-dist/tex/generic/bibtex/apalike.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2015/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/caption/caption3.sty)

Package caption Warning: Unsupported document class (or package) detected,
(caption) usage of the caption package is not recommended.
See the caption package documentation for explanation.

) (/usr/local/texlive/2015/texmf-dist/tex/latex/geometry/geometry.sty)
No file paper.aux.
(/usr/local/texlive/2015/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2015/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
geometry driver: auto-detecting
geometry detected driver: pdftex
! Use of @item doesn't match its definition.
\def \reserved@a {
\def @Currenvir {center}\edef @currenvline {...
l.52 \input{\abstract}

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on paper.log.

Traceback (most recent call last):
File "/usr/local/bin/scriptorium", line 9, in
load_entry_point('scriptorium==2.0.0', 'console_scripts', 'scriptorium')()
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scriptorium-2.0.0-py2.7.egg/scriptorium/main.py", line 102, in main
args.func(args)
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scriptorium-2.0.0-py2.7.egg/scriptorium/main.py", line 17, in build_cmd
shutil.move(pdf, args.output)
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 294, in move
os.rename(src, real_dst)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Extra space before abstract in IEEE papers

There seems to be an extra space placed before the abstract in IEEE papers, whenever the abstract is converted from an mmd to a tex file. This then pushes it onto the next line, throwing the formatting off a little bit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.