Tag Info

New answers tagged

1

I just wanted to share some nice projects that together can accomplish your purpose in a very neat way. biblequote: It will automatically allows you to include the content of a verse, see an example bellow. Note that it requires a patched version of Diatheke, hopefully the patch will be merged into Diatheke soon. diatheke: An application from the SWORD ...


2

Using \cprotect or other methods is a good solution for large material. In case just a control sequence name is needed in a moving argument there's an easier way: \caption{Example of usage of the \texttt{\string\psbox} command} Not documented in the LaTeX manual, but easier than using complex strategies.


2

One option using TikZ: The code: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.pathmorphing,decorations.pathreplacing,positioning} \usepackage{graphicx} \newcommand\mybox{% \begin{tikzpicture} \draw[decoration=coil,decorate,segment length=20pt] (0,0) -- (4,0); \draw[decoration={coil,mirror},decorate,segment length=20pt] ...


0

I never heard of kpsewhich before. However, I copy/pasted the command line you gave and got C:/Users/Mark/AppData/Roaming/MiKTeX/2.9 So I guess it does work. (Incidentally, using HOME instead of LOCAL gives only a blank line.)


0

Ok, apologies for making this one short; but I managed to post an example matching this problem on Adding \comment or \begin{comment} to \AtBeginDocument? ; it uses the {comment} package, and defines a modified version of its \excludecomment; such that one can use: \end{SKIPLINES} % the below range will be typeset: \lipsum[5] \begin{SKIPLINES} ... (note ...


6

feynmf uses METAFONT which will produce bitmaps. feynmp, on the other hand, uses METAPOST which will produce vectors. Vectors are scalable - they scale smoothly without significant loss of quality. Bitmaps do not. This is the difference between an image in PNG or JPG format, on the one hand, and SVG or PDF format, on the other. The latter formats scale ...


3

My favorite drawing tool has already been mentioned: MetaPost, but I would like to mention the package that ultimately brought me to MetaPost: mfpic. It's a (La)TeX package which can interface both METAFONT and MetaPost. To the (La)TeX user who doesn't want to learn the intricacies of another language, it offers a friendlier way to use their drawing ...


2

I am not an expert on dtx files, even though I've written a few. If I recall, I took an existing .dtx file and adapted it for my use. Along those lines, I provide a very stripped down sample.dtx file below (and the associated sample.ins). With it, I show both the sample.sty and sample.pdf files that are extracted from it. What are some of the salient ...


2

One possible approach with algorithm2e. I defined a "program-like" block MyStruct that begins with the keyword Struct, then typesets the structure name, then outputs keyword contains, and the end of the structure is denoted with keyword end: \SetKwProg{MyStruct}{Struct}{ contains}{end} All of this can be customized to your heart's content. Usage within ...


1

Try putting the hand.sty file to the same location where your own .tex file is located. Additionally, there are some fixed folders where LaTeX looks for .sty files. I'm not using OS X myself, but it should be in: /Users/<user name>/Library/texmf/tex/latex/local/ Source: Where do I place my own .sty or .cls files, to make them available to all my ...


1

The unicode equivalent of \mathbb{1} is the character 1D7D9, which has to be inserted into \texorpdfstring using \unicode{"1D7D9} \documentclass[12pt,titlepage]{article} \usepackage[utf8]{inputenc} \usepackage{bbm} \usepackage[pdfencoding=auto,unicode=true]{hyperref} \begin{document} \subsection{Model: Logistic Regression of ...


1

Here's another approach using enumitem for the inner lists (defined through two customized lists esdescription and esitemize) and tcolorbox for the ruled frame; the advantage with this approach is that the rules enclosing the construct won't detach from the contents: \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{enumitem} ...


1

You can use enumitem \documentclass{article} \usepackage{enumitem} \begin{document} \noindent \hrule \begin{description}[nosep] \item[Given:] \null\leavevmode \begin{itemize}[itemsep=0pt,leftmargin=2ex,label=\textbf{---}] \item Give some thing \end{itemize} \item[Find:] \null\leavevmode ...


5

ltxdoc is designed to be used as an extension of doc with source files in doc format written as comments on the source file. If used in that way, doc arranges for \fileversion to be defined based on the \ProvidesPackage argument in the documented sources. In comments it is clear that the intention is to produce translated documentation. For that I think it ...


4

The original question has been answered already, the remaining error has its origins in a missing \maketitle and \keywords and \subjclass statements. They are desperately needed as page heading styles. \documentclass[11pt,leqno]{article} \usepackage{dm} \begin{document} \title{Theory on Brontosaurs} \author[A. Elk]{Ann Elk (Misses)} ...


4

$ tlmgr search --global --file cfr-lm.sty tlmgr: package repository http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet cfr-lm: texmf-dist/tex/latex/cfr-lm/cfr-lm.sty You should try this: tlmgr --help


3

This is an answer to the question rather than the problem (which has been identified in comments). To check the installation status of a package and to get additional information about it, execute the following as yourself. (Certainly no need for root privileges here.) $ tlmgr info koma-script On my system, this gives: package: koma-script category: ...


3

This is taken from the UK TeX FAQ entry All the files used by this document: The snapshot package helps the owner of a LaTeX document obtain a list of the external dependencies of the document, in a form that can be embedded at the top of the document. The intended use of the package is the creation of archival copies of documents, but it has application ...


4

If TEXINPUTS includes a path component of .// then all directories below the current one will be searched. So (depending on your operating system) you can do TEXINPUTS=.//: pdflatex myfile or set TEXINPUTS with setenv or export or set or whatever is needed. Or for a cross platform solution TEXINPUTS can be set in the texmf.cnf configuration file rather ...


3

I wrote a package for this :) See also Creative Commons Licence on SX. The package is called doclicense. Check out the following mini example: \documentclass{article} \usepackage[ type={CC}, modifier={by-nc-sa}, version={3.0}, ]{doclicense} \begin{document} \doclicenseLicense \end{document}


2

You'll find numerous such empty definitions inside moderncv.cls; not just for the title. The structure of moderncv is such that it defines (via \newcommand) certain fundamental constructs when you load the class \documentclass[..]{moderncv} Then, depending on the choice of style you want, you would call \moderncvstyle{<style>} The above is ...


3

That is just a default (which does nothing) It gets redefined depending on options used, for example moderncv/moderncvstylebanking.sty does \renewcommand*{\makecvtitle}{% % recompute lengths (in case we are switching from letter to resume, or vice versa) \recomputecvlengths% \maketitle% % optional quote \ifthenelse{\isundefined{\@quote}}% ...


5

You had the order wrong: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{resume}[2015/02/08 Class for scientist's resumes in industy] \LoadClass{article} \RequirePackage[left=0.5 in,right=0.5 in,top=4in,bottom=1in]{geometry}


0

Trying with a voice synthesizer could help, I think.


1

A tighter variant with alignedat – less alignment points: \documentclass{article} \usepackage{amsmath} \usepackage{mhchem} \newcommand{\st}{\makebox[0pt][l]{$^{*}$}} \begin{document} \begin{equation*} \begin{alignedat}{4} &\ce{^{16}_{8}O8} &{}+n\rightarrow{} & \ce{^{17}_{8}O\st 9} &{}\rightarrow{} & \ce{^{17}_{8}O9}&{}+ \gamma \\ ...


5

Is perhaps this what you'd like to get? \documentclass{article} \usepackage{amsmath} \usepackage{mhchem} \newcommand{\st}{\makebox[0pt][l]{$^{*}$}} \begin{document} \begin{equation*} \begin{alignedat}{7} &\ce{^{16}_{8}O8} &&+ n\quad && \rightarrow{}\quad&& \ce{^{17}_{8}O\st 9} &&\rightarrow{} &&\ce{^{17}_{8}O9} ...


4

Defining new arrow tips with Xy-pic is a task I'd not engage in. You can (and should, in my opinion) switch to tikz-cd: \documentclass{article} \usepackage{MnSymbol} \usepackage{tikz-cd} \tikzcdset{arrow style=math font} \begin{document} $A \to B$ \begin{tikzcd} A \arrow[r,"f"] \arrow[dr,dashed,swap,"g\circ f"] & B \arrow[d,"g"] \\ & C ...


4

Package tikzsymbols provides some symbols as well. As usual with tikz, you can apply scale and color changes. \documentclass{article} \usepackage{tikzsymbols} \usepackage{textcomp} \usepackage{parskip} \begin{document} This is Max \Strichmaxerl and this is Jane \Strichmaxerl. The met over a \Coffeecup of nice and tasty coffee. Later they went for a ...


1

LaTeX packages are just text files. Once you have them on your computer, all are accesed the same way. The more a package can do, the more code is involved and hence the file will be bigger. That means as well a longer time to load. On the other hand, packages load other packages to use their functions. Package capt-of has 33 lines of code, most of it ...


5

pgf version without TikZ \documentclass{article} \usepackage{color} \usepackage{pgf} \definecolor{logolightgray}{gray}{.85}% = gray!30 \definecolor{logogray}{gray}{.5} \newdimen\logounit \setlength{\logounit}{5mm} \newcommand*{\logo}[1]{% \begin{pgfpicture} \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\logounit}{\logounit}} ...


8

If you compile your document using a UTF-8 aware engine such as LuaTeX or XeTeX, the code works: % Compile with LuaLaTeX or XeLaTeX \documentclass[french]{article} \usepackage{fontspec} \usepackage{babel} \usepackage[]{qrcode} \begin{document} \qrcode[]{ààààççççééééùùùùïïï}% produces no error: accented characters \bigskip \qrcode[]{Are accented characters ...


5

I wrote a package for this as I used something similar as Raniere Silva and I wanted it a bit more clean :) The package is called doclicense and will be on ctan shortly. Check out the following mini example: \documentclass{article} \usepackage{hyperref} \usepackage[ type={CC}, modifier={by-nc-sa}, version={3.0}, ]{doclicense} \begin{document} ...


2

There were several problems: Some source code character problem in your \usepackage text. The caption text was delimited by " You used a ] instead of a } to close the parameter list of lstlisting. The following works: \documentclass[10pt]{article} \usepackage{geometry} \topmargin=15pt \oddsidemargin=60pt \textwidth=340pt \textheight=545pt ...



Top 50 recent answers are included