Tag Info

Hot answers tagged

14

It depends on what you want to change … Example Let’s assume a simple and small package package.sty with the following content. I use this imaginary package since it can contain all things I want to share and doens’t have that complex code. If you want to test it save the package code as package.sty in your document folder, i.e. the same where the text ...


10

I have never written poems, even with pencil, but I think that every book class is equally good as starting point to make a title page, table of contents and index. Which class to choose at this respect is mainly a matter of personal preference, IMHO. These are standard LaTeX procedures and there are hundreds of answers covering any possible problem and ...


9

The journal recommend using either the article, revtex or amsart document classes. They say the following: TeX/LaTeX - Authors submitting LaTeX files may use any of the standard class files such as article.cls, revtex.cls or amsart.cls. Non-standard fonts should be avoided; please use the default Computer Modern fonts. For the inclusion of ...


9

You can cheat by adding a \null or \mbox{} or \phantom{some text}: \documentclass{beamer} %% redefine frametitle template \setbeamercolor{frametitle}{fg = white, bg = black} \setbeamertemplate{frametitle}{% \vskip-3pt \begin{beamercolorbox}[sep=0.6em,wd=\paperwidth,leftskip=0cm,rightskip=0cm]{frametitle}% \vspace{-2pt}\par ...


8

I have only tested this in versions pre-8.0. I would highly recommend to read the org-mode manual for LaTeX exporting capabilities. It is very good: org-export-latex. org-mode for Emacs has the optional LaTeX customization by using this: #+LaTeX_HEADER: \newcommand\myaddress{...} You can put as many header information lines as you please which in turn ...


8

You don't need XeLaTeX, nor many of the customization in that template. \documentclass{article} \usepackage[letterpaper,margin=1in]{geometry} \usepackage{xcolor} \usepackage{fancyhdr} \usepackage{tgschola} % or any other font package you like \pagestyle{fancy} \fancyhf{} \fancyhead[C]{% \footnotesize\sffamily \yourname\quad web: ...


8

jhep is a somehow very strange class ;-) Seriously spoken: I would not use this class if it is not really necessary, but, honestly, I can not provide an alternative however. \documentclass{jhep} \usepackage{blindtext} \author{me} \abstract{a} \title{JHEP -- a very strange \LaTeX~ class} \begin{document} \blindtext \TABLE{% \begin{tabular}{llll}% 1 ...


8

One possibility using the background package and a \foreach loop to draw the horizontal rules: \documentclass{article} \usepackage[vmargin=3cm]{geometry} \usepackage{tikzpagenodes} \usepackage{lipsum} \usepackage{background} \definecolor{notepadrule}{RGB}{217,244,244} \backgroundsetup{ contents={% \begin{tikzpicture} \foreach \fila in {0,...,52} ...


7

the gsm-l.cls does not deal well with the geometry package. (none of the ams document classes do, since a number of features depend on the fact that the positioning of the output is always centered horizontally, a requirement for sending the output directly through an automated plate-maker to prepare plates for the press.) the three values that are ...


7

You need to redefine the macro \@chapter in this way (since you're loading hyperref) \makeatletter \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{\@chapapp\space\thechapter.}% \addcontentsline{toc}{chapter}% ...


7

I don't know if a template exists elsewhere, but you can easily provide the required settings: \documentclass[14pt,openany]{memoir} \usepackage[a6paper,textheight=19\baselineskip,footskip=40pt]{geometry} \usepackage[pagestyles]{titlesec} \usepackage{xcolor} \usepackage{graphicx} \usepackage{lipsum}% kust to generate text for the example ...


7

I recommend opening an existing theme and seeing how it's done. Experimenting works here quite well I would say. The themes are usually located in <TeX root>/tex/latex/beamer/themes/theme/. Remember to put your new style in the folder where you document is and give the file a name beamertheme<Theme Name>.sty


6

My current resume is based on the article class; source hosted on GitHub and forked from kjhealy. It uses fontspec for OpenType fonts (Adobe Garamond Pro and FontAwesome). Still working on the best way to selectively place content for different purposes/companies. I'm experimenting with linked external documents, under the supposition that the resume ...


6

I've found the right trick... First of all, the right counter is questionnumber. Before setting the counter you have to put \resetcounterfalse MWE: \documentclass[11pt]{examdesign} \title{Exam} \author{Examiner} \date{Today} \class{This One} \begin{document} \begin{multiplechoice} \resetcounterfalse \setcounter{questionnumber}{50} ...


6

I had to deal with svmono in the past, so I'm probably in a charted territory. :) The following code uses xpatch to patch \@maketitle and remove the word Springer in the title page: \documentclass[graybox,envcountchap,sectrefs]{svmono} \usepackage{lipsum} \usepackage{xpatch} \makeatletter \xpatchcmd{\@maketitle}{{\Large Springer\par}}{}{}{} \makeatother ...


6

This was accomplished using a combination of the everypage package and TikZ. To build, run pdflatex -recorder <file> pdflatex <file> The first run with -recorder is to generate the files needed for the currfile package (to automate the bottom left). The second run is to sort out TikZ issues and to resolve labels used for the ...


6

You set dimensions of your PDF page by \pdfpagewidth and \pdfpageheight. However, with a standard parameters of svmono, text doesn't fit the page. An example of correction by setting \oddsidemargin and \evensidemargin is shown. \documentclass{svmono} \usepackage{lipsum} % A text for an illustration \pdfpagewidth16cm \pdfpageheight24cm \oddsidemargin0cm % ...


6

The simplest way for modifying the phrase is to add a couple of lines to the .tex document. I'll take the example document as a basis, you find the change between self-explaining comments: %% ---------------------------------------------------------------- %% Thesis.tex -- MAIN FILE (the one that you compile with LaTeX) %% ...


6

\documentclass{article} \def\a{\stepcounter{enumi}One two three four \roman{enumi} five six seven eight. } \def\b{\a\a\a\a Red blue yellow. \a\a\a\a\a\ Green black blue \Roman{enumi}. } \def\c{\b\b\b\par\a\b\a\b\a\par} \def\z{ Interesting text that has notes attached} \def\zz{\z\z\z\z\z} \newcommand\mynote[1]{\strut\vadjust{% ...


6

I expect that the dimensions of the text body are chosen on purpose. Filling a complete A4 (or letter) paper would either require very long lines ⇒ poor readability; or quite large margins ⇒ ineffective high paper costs). Therefore I assume that the one-column layout is intended for a final paper size that is smaller than A4 (or letter). And I ...


6

There are better ways to obtain fixed-width tabulars - the main problem with the current template. I've swapped out the use of tabular* with tabularx, provided by the tabularx package (and some array pizzaz): % (c) 2002 Matthew Boedicker <mboedick@mboedick.org> (original author) http://mboedick.org % (c) 2003-2007 David J. Grant ...


6

I get the error message: ! Undefined control sequence. \cftdotfill #1->\def \@tempa {#1}\def \@tempb {\cftnodots }\ifx \@tempa \@te... ... \cftdotfill is part of a table column specification in macro \ressubheading: \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r} There it gets expanded via ...


5

I think the following should cover most things. If anything is missing or appears wrong, please let me know. File organisation Place named.sty and named.bst in the same folder as your .lyx file. Document class options Go to Document --> Settings --> Document class, choose Report from the list of classes, and add 11pt,openright,twoside,letterpaper to ...


5

This is the first time I've ever succeeded in actually using the background package so caveat emptor... This code is based on code originally posted at http://michaelgoerz.net/blog/2009/07/printable-paper-with-latex-and-tikz/. However, when I just tried that link, it seemed to be broken so I am not sure where to direct the attribution now. Basically, the ...


5

Your quoting of the error message is misleading, the actual error is ! Undefined control sequence. <argument> \@chairmanname \\ \@chairmantitle l.91 \maketitle The undefined command is always the last token on the second line so \@chairmanname the later lines show the context where the error was detected which is ...


5

The cv.sty has this on line 66: \usepackage[sorting=ynt,bibstyle=authoryear-comp,defernumbers=true,maxnames=20,firstinits=true, uniquename=init,dashed=false,doi=false,isbn=false,backend=biber]{biblatex} Hence you have to use biber instead of bibtex. The compilation would be pdflatex → biber → pdflatex Then you get:


5

A layout in LyX is analogous to document classes in LaTeX. Since the provided document class (ociamthesis.cls) is not covered by an existing LyX layout, you have to create your own, by following these instructions (also available under Help > Customization; section 5.3 The layout file format): First you have to install the LaTeX class so that it works with ...


5

The Stationery folder in TeXShop is stored in ~/Library/TeXShop and its location can't be changed because TeXShop will automatically recreate it from a backup if it is moved or deleted. However, as long as the folder exists, TeXShop will be content. So it's perfectly possible to create the folder somewhere else (like your Dropbox folder) and then place a ...


5

This may be a shameless plug, but I ported a Powerpoint and a Powerdot theme to Beamer. Tehy are available here: https://bitbucket.org/marczellm/beamerports. Here is what they look like: I would be happy to receive improvement suggestions, feature requests and bug reports.


5

The file mitwpl.cls is flawed. The definition of \lingbib, starting on line 245 contains \newcommand{\bibfont}{#1} which should be \renewcommand{\bibfont}{#1}. The command \bibfont is already defined in the package natbib that mitwpl.cls includes. The example file example.tex is also flawed: ever section is labeled with the same \label{sec:intro} leading ...



Only top voted, non community-wiki answers of a minimum length are eligible