dimanche 30 novembre 2014

Subfigure package misplaces last subfigure in full width environment


I am using subfigure package along with pdflatex. My paper is in two columns, and sometimes I use a full width figure with subfigures:



\begin{figure*}
\subfigure[AM06]{\includegraphics[width=.25\textwidth]{AR06_RUN03_vort.png}}
\subfigure[AM07]{\includegraphics[width=.25\textwidth]{AR07_RUN03_vort.png}}
\subfigure[AM08]{\includegraphics[width=.25\textwidth]{AR08_run03_vort.png}}
\subfigure[AM09]{\includegraphics[width=.25\textwidth]{AR09_run03_vort.png}}
\subfigure[AM10]{\includegraphics[width=.25\textwidth]{AR10_run03_vort.png}}
\subfigure[AM11]{\includegraphics[width=.25\textwidth]{AR11_run03_vort.png}}
\subfigure[AM12]{\includegraphics[width=.25\textwidth]{AR12_run03_vort.png}}
\subfigure[AM13]{\includegraphics[width=.25\textwidth]{AR13_run03_vort.png}}
\end{figure*}


Subfigure wrong placement.


As you can see from the image, it places the last subfigure in the wrong position. Any ideas on how I can debug this?





Biblatex issues: citation nicknames showing up in document and no reference section being produced


I am receiving this error message whenever I compile by LaTex document:



  • I found no \citation commands---while reading file Final Paper.aux

  • I found no \bibdata command---while reading file Final Paper.aux

  • I found no \bibstyle command---while reading file Final Paper.aux


My preamble contains this command for my bibliography:



  • \bibliography{Psy 290.bib} \defbibheading{bibliography}{ \section*{\normalfont\refname}}


In my document, I am using \parencite and \textcite for referencing. I have also tried \cite, \citet, and \citep and just receive another error message stating those commands are not recognized. Does anybody have any insight into what may be happening?





equation goes out of margin



\[
\left| \dfrac{(1-\beta e^{i\theta}) \sum_{k=2}^{\infty}(k-1)[1+\gamma(k-1)]
\alpha_k\beta_k z^k}{B(1-\beta e^{i\theta}) \sum_{k=2}^{\infty}(k-1)[1+\gamma(k-1)]
\alpha_k \beta_k z^k -[(A-B)(1-\alpha)][z+\sum_{k=2}^{\infty}[1+\gamma(k-1)]
\alpha_k \beta_k z^k]}\right|<1
\]




How to change spacing in a template?


I am trying to write a two column biological review using a downloaded template. I had to add few pictures(one column) in between. So to adjust the spacing the template generates spacing in some places which are not appropriate. Does anybody know how to change spacing in it?





How to use pause and overprint together?


I want the items of a list (using itemize) to appear one after the other. I can use pause for the same and it works.


Now at the end of the list, I want to highlight only one of the items.


I thought I can use overprint with the list in the first part and the highlighted entry in the second part.


Here is the code for what I have tried.



\documentclass{beamer}


\begin{document}

\begin{frame}{Test Frame}
\begin{overprint}

\onslide<1>
\pause
\begin{itemize}
\item First line \pause
\item Second line \pause
\item Third line \pause
\end{itemize}

\onslide<2>
\pause
\begin{itemize}
\item \textcolor{blue}{First line}
\item Second line
\item Third line
\end{itemize}

\end{overprint}
\end{frame}

\end{document}


However, it gives me a compilation error:



! Extra }, or forgotten \endgroup.
\endminipage ...pagefalse \color@endgroup \egroup
\expandafter \@iiiparbox \...
l.26 \end{frame}

! Class beamer Error: Overprints may not overlap.


I know of this work arounds: 1. Remove pauses (but i REALLY want them in there!) 2. Move the highlighted entry to the next frame -- which means create a new frame.


How can I achieve this without creating a new frame?





Specifying various fonts with various scales with fontspec


The fontspec package allows us to define something like:



\setmainfont{texgyrepagella-regular.otf}[
BoldFont = texgyrepagella-bold.otf ,
ItalicFont = texgyrepagella-italic.otf ,
BoldItalicFont = texgyrepagella-bolditalic.otf ]


It also has a scale option.


I want to combine the two, and say something like: The main font is X.otf with scale 1, and if the main font is bold, use font Y.otf with scale 0.8. How can I achieve this?


Note that this scaling should only be applied when the main font is in bold, not for all bold fonts in the text.





Ask LaTeX to italicize a font algorithmically


I'm using a font which is upright, and has no italic equivalent. When I ask Microsoft Word to italicize some text typeset in that font, Word "algorithmically" computes the way it should look, and gives you the allusion that it is italic.


Here's an example: The first line is the normal font, and the second is italicized by Word. It's not in English, but just looking at the picture gives you the feel that the second line is italic:


Italicized by Word


Although the results never look perfect, I believe it's better than nothing.


LaTeX's approach is to give you a warning, and then replace the italic text with the normal one:



LaTeX Font Warning: Font shape `EU1/XYZ(1)/m/it' undefined
(Font) using `EU1/XYZ(1)/m/n' instead on input line 1.


Is there a way to ask LaTeX to algorithmically italicize the text?




PS: I currently use the fontspec package to ask LaTeX to typeset all italic texts with another font:



\setmainfont{XYZ}[ItalicFont={ABC}]


But it's not a neat approach.





This code do not compile, this is figure environments inside tabular environmet, adding captions and labels


This code do not compile, this is figure environments inside tabular environmet, adding captions and labels.


I havent found the reason and an effective way to organize my graphs. This is the code Im using.



\documentclass[aspectratio=169,draft]{beamer}



\usepackage{beamerthemeshadow}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath,amssymb}


\usepackage{amsfonts}

\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\usepackage{float}


\begin{document}

\frame{\frametitle{Implementación del Metodo de diferencias en redes cristlinas}

\begin{table}
\begin{tabular}{cc}
\begin{figure}
\centering
\includegraphics[scale=.4]{RepRedSC2D}
\caption{Replicación de celdas Unitarias}
\label{redes}
\end{figure}
s& s \\
\begin{figure}
\centering
\includegraphics[scale=.156]{11UnitSC2D}
\caption{Celda Unitaria SC -2D}
\label{Unit2D}
\end{figure} \\
s & d \\
\end{tabular}
\end{table}

}

\end{document}




How do I get my subsection to not appear bold and with no period at the end?


This is what I have for my codes:



\section{MAIN RESULTS}
\subsection{Graphical Analysis}\


I am getting this in the pdf: enter image description here


Instead I want the subsection in Italic non-bold form with no period at the end.


This is what I have in my preamble:



\documentclass[11pt,reqno]{amsart}

% Packages
\usepackage{graphicx}
\usepackage{amssymb,amsthm}
\usepackage{natbib}
\bibpunct{(}{)}{;}{;}{,}{,}
\usepackage{xr-hyper}
\usepackage[
colorlinks=true,
citecolor=blue,
urlcolor=blue,
linkcolor=blue
]{hyperref}
\usepackage{bm}
\usepackage{fullpage}
\usepackage{ amssymb }
\usepackage{caption} \captionsetup[figure]{labelfont=normalfont,labelsep=colon}
\usepackage{mathabx}

\pagestyle{plain}

\setlength{\parskip}{\baselineskip}
\setlength{\parindent}{12pt}

\setcounter{secnumdepth}{2}

\allowdisplaybreaks[4]

% Commenting/debugging
\let\IG\iffalse
\let\ENDIG\fi

%% Shortcuts
\newcommand{\td}[2]{\dfrac{d #1}{d #2}}
\newcommand{\std}[2]{\dfrac{d^2 #1}{d {#2}^2}}
\newcommand{\ctd}[3]{\dfrac{d^2 #1}{d #2 d #3}}

\newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\spd}[2]{\dfrac{\partial^2 #1}{\partial {#2}^2}}
\newcommand{\cpd}[3]{\dfrac{\partial^2 #1}{\partial #2 \partial #3}}

\newcommand{\pdi}[2]{\partial #1/\partial #2}

\newcommand{\LR}{\Leftrightarrow}
\newcommand{\Lg}{\mathcal{L}}
\newcommand{\half}{\tfrac{1}{2}}
\newcommand{\eqp}{\phantom{=}}
\newcommand{\eqs}{\buildrel s \over =}
\newcommand{\me}{\mathrm{e}}




Taking off the reference number from in text cite


I have a question about how to take off the reference number from in text cite? to explain more, I am using a thesis template, which uses the bibtex. This is how I cite a reference in text:



\citep[Rost and Riebesell, 2004]{rost2004coccolithophores}


the previous line produce a number before the Author names as follow: ....(1, Rost and Riebesell, 2004) and when I use additional square brackets the number appears to the right of the names:



\citep[Rost and Riebesell, 2004][]{rost2004coccolithophores}


the cite will appear as follow:



....(Rost and Riebesell, 2004 1)


I want to take off this number from the in text cite to be like this:



....(Rost and Riebesell, 2004)


So I hope someone will guide me to the right way to do this?





Calling macro fails with error \inaccessible


I am trying to define a macro which I will include in a class definition. For the time being I put the macro definition in the normal document. Compiling this document fails:



\documentclass[10pt,a4paper]{article}

\makeatletter
\def\ntcstitle#1{\def{\@ntcstitle}{#1}}
\newcommand{\thentcstitle}{\@ntcstitle}
\makeatother

\ntcstitle{Lorem Ipsum}

\begin{document}
\thentcstitle\par
\end{document}


This example is something I copied from another question here, which seemed to work: Define variable in a class


I also tried to move this definition into a class file. Omitted the \makeatletter and \makeatother commands. Using the class file was successful, the error message is the same.


This is the error message:



! Missing control sequence inserted.
<inserted text>
\inaccessible
l.10 \ntcstitle{Lorem Ipsum}


Then I replaced the macro with the Latex style definition:



\documentclass[10pt,a4paper]{article}
\usepackage{lipsum}

\makeatletter
\newcommand{\ntcstitle}[1]{\newcommand{\@ntcstitle}{#1}}
\newcommand{\thentcstitle}{\@ntcstitle}
\makeatother

\ntcstitle{Lorem Ipsum}

\begin{document}
\thentcstitle\par
\end{document}


And that works as expected.


I tried to use \def instead of \newcommand because I assumed \def was the correct way to define macros in class files. What I am doing wrong here?





Plotted line in tikz stops in middle of grid


The plotted line stops and doesn't go on till the border of the grid: enter image description here


This is my code:



\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}

\begin{document}
\begin{tikzpicture}[baseline={(current bounding box.north)}]
\draw[step=1cm,color=gray!20] (-3,-2) grid (6,6);
\draw[-] (-3,0) -- (6,0) node[right] {$x$};
\draw (0,0) node[below left] {$O$};
\draw[-] (0,-2) -- (0,6) node[above] {$y$};
\foreach \x in {-3, -2, -1, 1, 2, 3, 4, 5, 6}
\draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north] {$\x$};
\foreach \y in {-2, -1, 1, 2, 3, 4, 5, 6}
\draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=east] {$\y$};
\draw[blue] (-2,4) node[below left] {$k$};
\draw[black] (4,5) node[above left] {$A$};
\clip (-3,-2) rectangle (6,6);
\draw[scale=1,smooth,variable=\x,blue] plot ({\x},{(-4/3)*\x});
\draw[scale=1,smooth,variable=\x,red] plot ({\x},{(3/4)*\x+2});
\draw[fill=black](4,5) circle(0.5mm);
\end{tikzpicture}

\end{document}


What can I do so the line goes on the border of the grid??





Biblatex abbrevation for no author/editor/year/etc. in alphabetic style


I use an alphabetic citestyle with biblatex. Sometimes I have entries where no author or editor or year is given. For example there is often no editor for a proceeding. At the moment I leave the entry for editor empty, but I would like to change this behavior so that biblatex automatically prints ‘s.ed.’ (lat. sine editore) in the bibliography if the field is empty.


When I just write this into the editor field I get s.ed. (Ed.). So I need to prevent the output of (Ed.), but I have no idea where to implement this.


In the same way the following entries should be printed (see link in german) when the field is usually required for the type of entry:



  • ‘s.a.’ (lat. sine auctore "without author")

  • ‘s.ed.’ (lat. sine editore "without editor")

  • ‘s.a.’ (lat. sine anno "without year")

  • ‘s.t.’ (lat. sine titulo "without title")

  • ‘s.l.’ (lat. sine loco "without location")

  • ‘s.ed.’ (lat. sine editore "without publisher")


At the moment I have no idea how to handle a missing author or year for the citations within the text, because sth. like [ABCs.a.] doesn't look good. Therefore, suggestions are welcome ;)


MWE:


The MWE illustrates the different cases of missing entries. I always wrote the abbreviation into the field (except for the second entry) by hand to illustrate what the output should look like. The output is correct except for the case where no editor is given, because the output is s.ed., ed. but it should be s.ed.. That is the first point where I need help to fix it.


If I want to change the abbreviation from latin to english later it would be a complicated task. So this is the second point where I need help with a solution for the following problem:


What I would like to achieve is to tell biblatex that I don't have a value for a specific field and I want to print the appropriate abbreviation to state to the reader that no information is available for that field (maybe a command like \noauthor). If I just leave the field empty it should be interpreted as ignoring the field like biblatex already do for the second entry noAuthor2 WARN - The field 'author' in entry 'noAuthor2' cannot be null, deleting it.



\documentclass{article}
\usepackage[backend=biber,style=alphabetic, autocite=footnote]{biblatex}


\begin{filecontents*}{bibliography.bib}
% Example for no author
@BOOK{noAuthor,
author = {s.a.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no author and field left empty
@BOOK{noAuthor2,
author = {},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no editor
@Collection{noEditor,
editor = {s.ed.},
title = {Book of light},
year = {1985},
publisher = {Springer Science+Business Media, LLC},
location = {New York}
}
% Example for no year
@BOOK{noYear,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {s.a.},
location = {New York},
publisher = {Pitman},
}
% Example for no title
@BOOK{noTitle,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {s.t.},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no location
@BOOK{noLocation,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {s.l.},
publisher = {Pitman},
}
% Example for no publisher
@BOOK{noPublisher,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {s.ed.},
}
\end{filecontents*}


\addbibresource{bibliography.bib}
\nocite{*}

\begin{document}
\null
\vfill

\printbibliography
\end{document}




Algorithmus at caption for Algorithm


I am using classicthesis for Algorithm caption when pdf is generated it write "Algorithmus " rather than Algorithm :





Can't include a reference with BibTex


I want to include a reference. For this purpose, I create a file called References.bib in which I put this:



@article{ref,
author={First author, Second Author and Third author},
title={Title of the article},
journal={},
year = 2005
}


Then in the latex file I include the refrence by:



\cite{ref}


I also include in the beginning:



\usepackage{natbib}


And at the end before the end document:



\bibliographystyle{te}
\bibliography{References}


I get a question mark instead of the reference. I don't know what's wrong with my code ? Thank you in advance !!





Setting the enumi counter under custom enumeration with enumitem


I have a several items in an 'enumitem' enumerate environment with custom label styles, and I would like to repeat them at various points later on.


Something like this:



(a) Unicorns don't exist.


(b) Trees exist.


As I have said before:


(a) Unicorns don't exist.



However, I ran into trouble because \ref{somelabel} (where somelabel is the label of an item in the enumerate environment) gives the stylised counter rather than the actual number.


So I tried using the 'refcount' package. But that doesn't seem to work either, and \getrefnumber{somelabel} gives the same result as \ref{somelabel}.


Here is a simplified version of my markup:



\documentclass{article}

\usepackage{enumitem}
\usepackage{refcount}

\begin{document}

\begin{enumerate}[label=(\alph*)]
\item Thing 1\label{first}
\item Thing 2
\setcounter{enumi}{\ref{first}}
\item Thing 3
\setcounter{enumi}{\getrefnumber{first}}
\item Thing 4
\end{enumerate}

\begin{enumerate}[resume*]
\setcounter{enumi}{\ref{first}}
\item Thing 5
\setcounter{enumi}{\getrefnumber{first}}
\item Thing 6
\end{enumerate}

Reference: \ref{first}. Number: \getrefnumber{first}.

\end{document}


I get ! Missing number, treated as zero. <to be read again> errors for each \setcounter (but only on the second run through).


The result looks like:


Result of the code


So despite latex's protestations, it does seem to be setting the counter right in the first enumerate (though in fact it should be (b), since I haven't decremented the counter by one; and it also prints out extra (a)'s).


However, in the second enumerate, it fails to even form a valid list (I get ! LaTeX Error: Something's wrong--perhaps a missing \item. errors too).


Note: I remove [label=(\alph*)] and [resume*], this all works perfectly.


I know this could be achieved by defining a counter for each item, or even hard-coding the values, but I'd rather do this with labels and references if possible.


Thank you for your help!





How to create a minimal working example for verbatim use in macro definition with cprotect


cprotect can be used to use verbatim in a macro definition according to the package specification. Just like everything else in the world that doesn't provide an example it doesn't work in real life and therefore I want/have to do that job myself. Why does



\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{cprotect}
\usepackage{fancyvrb}

\begin{document}
\newcommand{\bla}{Like this one: \verb-!@#$%^&*()_+-.}
% same in TeX
%\def\bla{\verb+Yes!+}
\cprotect\bla
\end{document}


not work (error message is ! Forbidden control sequence found while scanning use of \@argdef.? Using a verbatim environment doesn't work (or does, we'll see...).





Braket notation in latex


I am using the braket package to generate bra and ket vectors. However, I could not figure out how to do <0|0> using the package. Is there a command for this?





Which package to use to create a size like blank presentation





How can I keep a cellcontent static?


I have defined a TeX-macro to compare date and time information. Within a single box, there is no problem, but if used in a table, in different columns or lines, as shown below, the result is 0. Obviously, the boxes are unboxed and flushed. How may I save the information of box 1 (column/line) and box 2(column/line) to be processed in column 3 without typing them again?



\documentclass[a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{longtable}
% \time
\newcount\hour %
\newcount\hours %
\newcount\minutes %
\hour=\time \divide\hour by 60
\minutes=\time
\hours=\hour \multiply\hours by 60
\advance \minutes by -\hours
%end \time
%begin definitions of caldate
\newcount\fromcalyear %%
\newcount\fromcalmonth %%
\newcount\fromcalday %%
\newcount\fromcalhour %%
\newcount\fromcalminutes %%
\newcount\tocalyear %%
\newcount\tocalmonth %%
\newcount\tocalday %%
\newcount\tocalhour %%
\newcount\tocalminutes %%
\def\fromcaldate[#1-#2-#3 #4:#5]{%
\fromcalyear=#1 %
\fromcalmonth=#2 %
\fromcalday=#3 %
\fromcalhour=#4 %
\fromcalminutes=#5 %
\ \the\fromcalyear-\ifnum\fromcalmonth<10
0\fi\the\fromcalmonth-\ifnum\fromcalday<10
0\fi\the\fromcalday\ \ifnum\fromcalhour<10
0\fi\the\fromcalhour:\ifnum\fromcalminutes<10 0\fi\the\fromcalminutes
\vskip0.1\baselineskip}%
\def\tocaldate[#1-#2-#3 #4:#5]{%
\tocalyear=#1 %
\tocalmonth=#2 %
\tocalday=#3 %
\tocalhour=#4 %
\tocalminutes=#5\ %
\the\tocalyear-\ifnum\tocalmonth<10
0\fi\the\tocalmonth-\ifnum\tocalday<10
0\fi\the\tocalday\ \ifnum\tocalhour<10
0\fi\the\tocalhour:\ifnum\tocalminutes<10 0\fi\the\tocalminutes
\advance\fromcalyear by -\tocalyear\multiply\fromcalyear by
-1 %
\advance\fromcalmonth by -\tocalmonth\multiply \fromcalmonth
by-1 %
\advance\fromcalday by -\tocalday \multiply \fromcalday by-1 %
\advance\fromcalhour by -\tocalhour \multiply \fromcalhour by-1 %
\advance\fromcalminutes by -\tocalminutes \multiply \fromcalminutes by-1 %
\vskip0.1\baselineskip}%
\def\rescaldatetime{(\the\fromcalyear)-(\the\fromcalmonth)-(\the\fromcalday) (\the\fromcalhour):(\the\fromcalminutes)}
\def\rescaldate{(\the\fromcalyear)-(\the\fromcalmonth)-(\the\fromcalday)}
\def\rescaltime{(\the\fromcalhour):(\the\fromcalminutes)}
\begin{document}
\begin{longtable}{p{3cm}p{3cm}p{3cm}}
\fromcaldate[2013-01-01 13:00]
\tocaldate[2014-02-04 14:11]
\rescaldatetime\\
\\
\fromcaldate[2013-01-01 13:00]&
\tocaldate[2014-02-04 14:11]&
\rescaldatetime\\
&&
\rescaldatetime\\
\end{longtable}
\end{document}




How to add horizontal line for subtraction in array


I already have this:



\documentclass{article}
\usepackage{amsmath}

\begin{document}
$k:\left\{ \begin{array}{cccccc}x & = & -3+3\lambda & \Big| & 4 & \Big| \\ y & = & 4-4\lambda & \Big| & -3 & \Big| \end{array} \right. \Rightarrow \left\{ \begin{array}{cccccc}4x & = & -12+12\lambda \\ -3y & = & -12+12\lambda \end{array} \right.$
\end{document}


I kind of want to have this: enter image description here


What is the best way to get the subtraction line?





Listing or stacking nodes on top of each other in forest


I'm wanting to make a logic tree using forest that looks something like the picture below: enter image description here


I'm struggling to list the premises of the argument at the first node of the tree in the way that is done in the picture. Any help would be much appreciated!





Multiple plots don't work in TeXShop mac


I was trying to include multiple plots with the following in Texshop in my mac:



\begin{figure}
\centering
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{l1.jpg}
\caption{$y=x$}
\label{fig:y equals x}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{l1.jpg}
\caption{$y=3sinx$}
\label{fig:three sin x}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{l1.jpg}
\caption{$y=5/x$}
\label{fig:five over x}
\end{subfigure}
\caption{Three simple graphs}
\label{fig:three graphs}
\end{figure}


It didn't work and the console said:



Latex Error:
Environment subfigure undefined.
Type H<return> for immediate help.
...
l.368 \begin{subfigure}[b]{0.3\textwidth}
? H
Your command was ignored.
Type I <command> <return> to replace it with another command, or <return> to continue without it.
?


It says my command was ignored. why?


I check, the latex file and the files are correctly named and in the correct location.





override \scshape in fancyhdr


I would like to be able to disable the \scshape for a specific word in the title of a subsection. For example when using $\mathfrak{}$.


Here is the parameters I have set for the layout.


\fancyhead[LE,RO]{\fontsize{7}{11}\selectfont \scshape \rightmark}


Thank you very much!





Problem with unexact font sizes in memoir


I have to typeset a theses and unless nobody knows why I have to set it in 12pt with one and a halve line spacing. The strange thing is, that in the resulting PDF file the font looks smaller and when I measure the font's size in the PDF file I get the result of: 11.96pt What could cause that?


Here the example:



\documentclass[a4paper,12pt,oneside]{memoir}

\usepackage{polyglossia}
\usepackage{blindtext}


\newcommand*{\setasuspacing}[1]{%
\let\AsuSpacing#1
\AsuSpacing}
\setasuspacing{\OnehalfSpacing}

\begin{document}
\tableofcontents*
\chapter{Test, nothing else – Don't wast you time reading this! It has to have two lines}
\section{Don't wast you time reading this! It has to have two lines. It has to have two lines}
\Blindtext
\footnote{\blindtext}
\blindtext
\section{Test124}
\Blindtext
\chapter{Test2}
\Blindtext \Blindtext \Blindtext

\end{document}




How to place a title in the tcolorbox to the bottom (left right) of the box


The question is how to place a title in the tcolorbox to the bottom left/right of the box. I want to create something like the following picture. The main point here is the caption "My picture box" being in the bottom of the box.


enter image description here





How to change algorithm caption to figure caption ouside of the box?


I'm using IEEEtran with \usepackage[boxed,linesnumbered]{algorithm2e}. I have one pseudocode/algorithm. My caption inside the algorithm environment appears as "Algorithm 1". Since I only have one algorithm, I think I should be using the figure caption instead. What do you think and how can I force my caption to appear as a figure caption?


To provide information needed for the comments here is a snippet of my code:



\IncMargin{1em}
\begin{algorithm}
\DontPrintSemicolon
\Indm
\KwInputs{\hspace*{0.3em}sth}
\KwOutput{sth}
\Indp
this is the body of my algo.
\caption{this is my caption.}
\end{algorithm}
\DecMargin{1em}




Are there scale-relative coordinates in TikZ?


Whenever I change the text width in the following example, the \nodes seem to remain in a coordinate system which is independent of the scaling of the image. Is there a way to set the coordinates relative to the picture’s scale?



\begin{minipage}[t][][b]{0.38\textwidth}
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] at (0,0) {\includegraphics[width=1\linewidth]{images/Cones_2c.png}};
\node [anchor=center] at (1.4,5.9625) {$\vec\omega_o$};
\node [anchor=center] at (2.72,6.1375) {$\vec n$};
\node [anchor=center] at (4.1125,5.9625) {$\vec\omega_r$};
\end{tikzpicture}
\end{minipage}






itemize within tabularx does not work when ltablex is loaded


I need this code to be compilable without errors:



\documentclass{article}
\usepackage{tabularx}
\usepackage{amsmath, mathdots, paralist}
\usepackage{ltablex} % uncommenting this line will work

\begin{document}

\begin{tabularx}{\textwidth}{lX}
% & influential variables &
\textbf{Setting 1:} & This is my description $X_{\text{bla}} \in \{1, \hdots , 20\}$.\\
\textbf{Setting 2:} & This splits into
\begin{compactitem}
\item First item
\item Second item
\end{compactitem} \\
\end{tabularx}
\end{document}


I am getting the error Something's wrong--perhaps a missing \item. \end{tabularx}. If I remove the line \usepackage{ltablex} it will work. However, I need the ltablex package and therefore I am looking for a possibility to let the code above be compilable. Any suggestions?





Auto fold sections on startup


I am working on a large document in TeXstudio and always become a bit daunted when i see the wall of text in the document. The first thing I do then is to fold all sections in the document to get a better view. It is a bit annoying however to fold all the sections manually everytime i open the document. Is there a way in TeXstudio to auto fold all sections on startup?





Why does this \adjustwidth not make the figure wider?


I’m trying to stretch a figure beyond \textwidth and I’m using \adjustwidth for it. For some reason it has no effect and I can’t quite figure out why that is the case. Here is the code:



\documentclass{article}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm,includefoot]{geometry}
\usepackage[demo]{graphicx}
\usepackage[english]{babel}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{titlesec}
\usepackage{chngpage} % Temporarily adjust side margins
\begin{document}

\begin{adjustwidth}{-1cm}{-1cm}
\begin{figure}
\centering
\renewcommand{\arraystretch}{3}
\begin{tabular*}{\textwidth}{@{}ccc@{}}
\includegraphics[width=0.31\linewidth,height=2cm]{dummy} &
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}&
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}\\
\includegraphics[width=0.31\linewidth,height=2cm]{dummy} &
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}&
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}
\end{tabular*}
\caption{\blindtext}
\end{figure}
\end{adjustwidth}

\blindtext

\end{document}




Prevent page break before section in \documentclass{article}


When using \documentclass{article} I sometimes have some small sections (started by \section{}) and it does not look nice to have a few lines, so I would like to keep a number of small section together on the same page.


Is there a way to tell LaTeX not to break the page before a specific \section?





Vertical center of text in table with images


I want to vertically center the text Rule boolean behavior in each row, how can I do this?


Sharelatex.


enter image description here



\documentclass{article}

\usepackage{graphicx}
\graphicspath{ {images/} }

\usepackage[rightcaption]{sidecap}

\usepackage{wrapfig}

\begin{document}

\begin{table}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
Rule & Sample Evolution & Boolean Form & Behavior\\
\hline
$Rule$ & \includegraphics{stable.png} &$boolean$ & behavior\\
\hline
$Rule$ & \includegraphics{decreasing.png} &$boolean$ & behavior\\
\hline
$Rule$ & \includegraphics{growing.png} & $ boolean $ & behavior\\
\hline
$Rule$ & \includegraphics{chaotic.png} &$ boolean $ & behavior\\
\hline
\end{tabular}
\caption{Lorem ipsum}
\end{table}


\end{document}




\newtheorem{def} throws an error


the following is a piece of the code I am working on. It says that there is an error with \newtheorem{def} but I really don't understand why. Thank you very much for your help!



\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry} % set the margins to 1in on all sides
\usepackage{graphicx} % to include figures
\usepackage{amsmath} % great math stuff
\usepackage{amsfonts} % for blackboard bold, etc
\usepackage{amsthm} % better theorem environments
\usepackage{esint}


\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{conj}[thm]{Conjecture}

\newtheorem{def}[thm]{Definition}


It throws an error even if I do not include "\begin{def}, \end{def}" in my code.





Using Latex symbols in Wordpress


I'm a Latex newbie. I'm using the LaTeX for WordPress and I'm having trouble implementing $$m_1\ddot{x}_1 = -k_1x_1 + k_2(x_2-x_1)$$ $$ m_1\ddot{x}_1 + k_1x_1 + k_2(x_1-x_2) = 0$$


The double dots over the x are not being recognised. What am I doing wrong?





How to I use a longtabu inside \newenvironment?


I have the following newenvironment defined using tabularx



\newenvironment{factlist}{%
\newdimen\unbaseline
\unbaseline=\dimexpr-\baselinestretch\baselineskip\relax
\renewcommand\item[2]{%
\textsc{##1} & {\raggedright ##2\smallskip\\}\\[\unbaseline]}
\tabularx{\linewidth}{rX}}
{\endtabularx}


I use it as follows:



\begin{factlist}
\item{A}{aaaa}
\item{B}{bbbb}
...
\item{Z}{zzzz}
\end{factlist}


Trouble is, the "factlist" does not split across pages. I believe this is because tabularx does not fit across pages.


I figured that "longtabu" from the "tabu" package has the same syntax as tabularx. However, I am not able to replace \tabularx and \endtabularx with \begin{longtabu} and \end{longtabu} in newenvironment. It throws a Runaway argument exception.


I am new to Latex. It would be nice if you could help me getting this code to work.


I am open to other methods as well, since all I want to do is BE ABLE TO SPLIT THE "FACTLIST" ACROSS PAGES!





How can I broaden a figure including caption?


I’m tring to extend a figure including the caption horizontally beyond the \textwidth. I tried wrapping the figure in a wider \makebox, but that does not work.



\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[english]{babel}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{titlesec}
\begin{document}

\makebox[1.2\textwidth][c]{
\begin{figure}
\centering
\renewcommand{\arraystretch}{3}
\begin{tabular*}{\textwidth}{@{}ccc@{}}
\includegraphics[width=0.31\linewidth,height=2cm]{dummy} &
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}&
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}\\
\includegraphics[width=0.31\linewidth,height=2cm]{dummy} &
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}&
\includegraphics[width=0.31\linewidth,height=2cm]{dummy}
\end{tabular*}
\end{figure}
}

\blindtext

\end{document}




CV / Resume class with good accompanying letter and document classes [closed]


I am refreshing my résumé and would like to use a class that works well stylistically with other classes for cover letters, research statements, and other documents. Quite often these documents have to be combined together into a single PDF for funding applications.


Because of this need to combine documents, I would like to find a CV class that has a coherent look and feel across the résumé, letters, other and documents. I would prefer something using LaTeX that:



  • can be used to create normal documents that look similar to letter or article

  • looks like a single column

  • uses the same \section{} commands as a typical document, so that the document format can be kept consistent

  • works with bibliographies and allows citations using eg. natbib.


From what I can see, I have two options:



  1. A CV class that doesn't fiddle too much with the typical letter or report settings.

  2. Creating a meta-class that defines fonts, page layout, etc, and then calls different standard / custom classes depending on whether I want to write a letter, a CV, or a document.


Does anyone have any suggestions for a class that would satisfy #1 above?





how do I get colorful references


I hope this email finds you in good health.


Please kindly see the following link: LaTeX referencing colorful numbering


I have also the mentioned problem in part 1. Unfortunately, I could not solve my problem by using your answer. Can I request you send me a ready sample file including the required command in section Answers? I have download hyperref package but I don't know how it works.


Hope to hear from you soon





I want to organize three images in a frame, simulating the effect of a zoom,


This is an example of what i want to create


I have three images, I want to organize them in a frame to cause the effect of a zoom, similar to the image I have posted above. In this image the galaxy is at left, but i want to learn how to modified this position in the code, becouse acctually I need the second image(in our case, the Solar System) at right.


It is no necessarily that one image overlap the other, but it is not a problem if this occurs


I have no clue how to do it, any advice?





Publishers and Talmud layout



  1. a) What software do publishers use for creating the complex layout on the Talmud?


b) Can anyone recommend to me a software that's easy to use for this?





TikZ mdframed environment: close box at end of page and continue on next


I used the Excursus environment as a template to create my own box like this:



\usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed}
\newenvironment{boxtype1}{%

\begin{mdframed}%

[linewidth=.5,margin=8.5,backgroundcolor=gray!2,linecolor=red,fontcolor=black,roundcorner=10pt, middlelinewidth=2pt]%

\fontsize{12}{14}\sffamily\selectfont%
}{\end{mdframed}}


Works perfectly nice. However, would there be a way to automatically close the box at a page break and then open it new on the next one? If it would even be possible to have a "Excursus X continued" on each page that would be perfect.


Thanks


Philipp





pspictures are gone on Windows with crop=on


The following code:



\documentclass{article}
\usepackage[crop=on]{auto-pst-pdf}
\usepackage{pstricks}
\begin{document}
aaaa
\begin{pspicture}(25mm,25mm)
\psset{unit=1mm}
\psframe(0,0)(20,20)
\end{pspicture}
bbbb
\end{document}


When ran with pdflatex on Windows, produces a PDF file with only the "aaaa bbbb" - not the frame. On Ubuntu this works fine.


Here is the full log-file on Windows:



This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.3.10) 30 NOV 2014 17:36
entering extended mode
**mwe.tex
(F:\Dropbox\papers\FairAndSquareProportional\mwe.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\auto-pst-pdf\auto-pst-pdf.sty"
Package: auto-pst-pdf 2009/04/26 v0.6 Wrapper for pst-pdf

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
)
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2014/05/25 v2.7 package option processing (HA)

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))
\XKV@depth=\count87
File: xkeyval.tex 2014/05/25 v2.7 key=value parser (HA)
))
("C:\Program Files\MiKTeX 2.9\tex\latex\ifplatform\ifplatform.sty"
Package: ifplatform 2010/10/22 v0.4 Testing for the operating system

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\catchfile.sty"
Package: catchfile 2011/03/01 v1.6 Catch the contents of a file (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
\c@app@runs=\count88
runsystem(echo " ")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(del "mwe-pics.pdf")...executed.

runsystem(latex -disable-write18 -jobname="mwe-autopp" -interaction=batchmode
"\let \APPmakepictures \empty \input mwe.tex")...executed.

runsystem(dvips -Ppdf -o "mwe-autopp.ps" "mwe-autopp.dvi")...executed.

runsystem(ps2pdf "mwe-autopp.ps" "mwe-autopp.pdf")...executed.

runsystem(pdfcrop "mwe-autopp.pdf" "mwe-pics.pdf")...executed.



Package auto-pst-pdf Warning:
Creation of mwe-pics.pdf failed.
This warning occured on input line 124.


Package auto-pst-pdf Warning:
Could not create mwe-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

("C:\Program Files\MiKTeX 2.9\tex\latex\pst-pdf\pst-pdf.sty"
Package: pst-pdf 2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
\c@pspicture=\count89

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
\Gread@gobject=\count90
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 214.

("C:\Program Files\MiKTeX 2.9\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2013/12/12 v0.60 LaTeX wrapper for `PSTricks' (RN,HV)

("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\pst-xkey.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex"
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count91
\pstFP@xia=\count92
\pstFP@xib=\count93
\pstFP@xfa=\count94
\pstFP@xfb=\count95
\pstFP@rega=\count96
\pstFP@regb=\count97
\pstFP@regs=\count98
\pstFP@times=\count99
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common.tex"
\pgfutil@everybye=\toks16
\pgfutil@tempdima=\dimen105
\pgfutil@tempdimb=\dimen106

("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common-lists.te
x")) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex"
\pgfkeys@pathtoks=\toks17
\pgfkeys@temptoks=\toks18

("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeysfiltered.code.te
x"
\pgfkeys@tmptoks=\toks19
)) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgffor.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathcalc.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathutil.code.tex"
\pgf@x=\dimen107
\pgf@xa=\dimen108
\pgf@xb=\dimen109
\pgf@xc=\dimen110
\pgf@y=\dimen111
\pgf@ya=\dimen112
\pgf@yb=\dimen113
\pgf@yc=\dimen114
\c@pgf@counta=\count100
\c@pgf@countb=\count101
\c@pgf@countc=\count102
\c@pgf@countd=\count103
\pgfutil@tempcnta=\count104
\pgfutil@tempcntb=\count105
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathparser.code.tex"
\pgfmath@dimen=\dimen115
\pgfmath@count=\count106
\pgfmath@box=\box26
\pgfmath@toks=\toks20
\pgfmath@stack@operand=\toks21
\pgfmath@stack@operation=\toks22
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.basic.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.trigonometr
ic.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.random.code
.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.comparison.
code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.base.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.round.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.misc.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.integerarit
hmetics.code.tex")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfloat.code.tex"
\c@pgfmathroundto@lastzeros=\count107
))
\pgffor@iter=\dimen116
\pgffor@skip=\dimen117
\pgffor@stack=\toks23
\pgffor@toks=\toks24
)
\psLoopIndex=\count108

`PSTricks' v2.57 <2014/08/27> (tvz)
\pst@dima=\dimen118
\pst@dimb=\dimen119
\pst@dimc=\dimen120
\pst@dimd=\dimen121
\pst@dimg=\dimen122
\pst@dimh=\dimen123
\pst@dimm=\dimen124
\pst@dimn=\dimen125
\pst@dimo=\dimen126
\pst@dimp=\dimen127
\pst@hbox=\box27
\pst@ibox=\box28
\pst@boxg=\box29
\pst@cnta=\count109
\pst@cntb=\count110
\pst@cntc=\count111
\pst@cntd=\count112
\pst@cntg=\count113
\pst@cnth=\count114
\pst@cntm=\count115
\pst@cntn=\count116
\pst@cnto=\count117
\pst@cntp=\count118
\@zero=\count119
\pst@toks=\toks25
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.con")
\psunit=\dimen128
\psxunit=\dimen129
\psyunit=\dimen130
\pst@C@@rType=\count120
\pslinewidth=\dimen131
\psk@startLW=\dimen132
\psk@endLW=\dimen133
\pst@customdefs=\toks26
\pslinearc=\dimen134
\pst@symbolStep=\dimen135
\pst@symbolWidth=\dimen136
\pst@symbolLinewidth=\dimen137
\everypsbox=\toks27
\psframesep=\dimen138
\pslabelsep=\dimen139
\sh@wgridXunit=\dimen140
\sh@wgridYunit=\dimen141
\pst@shift=\dimen142
)
File: pstricks.tex 2014/08/27 v2.57 `PSTricks' (tvz,hv)

("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex")
File: pst-fp.tex 2014/08/27 v2.57 `PST-fp' (hv)

("C:\Program Files\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty"
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
))
\ppf@output=\toks28

("C:\Program Files\MiKTeX 2.9\tex\latex\preview\preview.sty"
Package: preview 2010/02/14 11.86 (AUCTeX/preview-latex)
\pr@snippet=\count121
\pr@box=\box30
\pr@output=\toks29
)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvips.def"
File: dvips.def 2014/04/23 v3.0j Driver-dependant file (DPC,SPQR)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\environ\environ.sty"
Package: environ 2014/05/04 v0.3 A new way to define environments

("C:\Program Files\MiKTeX 2.9\tex\latex\trimspaces\trimspaces.sty"
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks30
)))
(F:\Dropbox\papers\FairAndSquareProportional\mwe.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.

("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count122
\scratchdimen=\dimen143
\scratchbox=\box31
\nofMPsegments=\count123
\nofMParguments=\count124
\everyMPshowfont=\toks31
\MPscratchCnt=\count125
\MPscratchDim=\dimen144
\MPnumerator=\count126
\makeMPintoPDFobject=\count127
\everyMPtoPDFconversion=\toks32
)
Preview: Fontsize 10pt
Preview: PDFoutput 1

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `mwe-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ----------------------------------------------------
(pst-pdf) latex mwe.tex
(pst-pdf) dvips -o mwe-pics.ps mwe.dvi
(pst-pdf) ps2pdf mwe-pics.ps
(pst-pdf) ---------------------------------------------------- .


[1


Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(F:\Dropbox\papers\FairAndSquareProportional\mwe.aux) )
Here is how much of TeX's memory you used:
8506 strings out of 493921
150399 string characters out of 3147252
198209 words of memory out of 3000000
11707 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
50i,5n,44p,485b,121s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTeX
2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on mwe.pdf (1 page, 10384 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)


When I change to "crop=off", it works in Windows too (but this has other unwanted side-effects).





Code for pin icon on a map


Is there any way I can get the pin icon / symbol (that us usually used on maps)? Any icon similar to the attached one would do. I am trying to use this symbol instead of stating 'Address' in one of my documents. Any input, suggestions or advice will be greatly appreciated.


enter image description here





Citing a linux manual page in bibtex?


I'd like to cite the man page for the iostat command. I found the @manual entry. Is this the accepted way of citing Linux man pages?


I've populated the fields below based on what the man page says on my system.



@manual{iostat,
title = "iostat(1) Linux User's Manual",
%author = "",
%organization = "",
%address = "",
%edition = "",
year = "2013",
month = "July",
%note = "",
}




Why is the prefix in my citation not working?


When I try to make a prefix, it breaks the command. I have tried both the \citep, \citet and the \cite commands. I have also tried looking at the Babel files, and changing the < and > to << and >> in the commands:


\declare@shorthand{danish}{"<}{\textormath{\guillemotleft}{\mbox{\guillemotleft}}} \declare@shorthand{danish}{">}{\textormath{\guillemotright}{\mbox{\guillemotright}}}


But that did not work. Postfixes works fine.



\documentclass[11pt]{memoir}
\usepackage[danish]{babel}
\renewcommand{\danishhyphenmins}{22}
\usepackage[natbibapa]{apacite}

\begin{document}
\section{Citations}
\citep<The prefix is not working>[Postfix works fine]{smiths}

\bibliographystyle{apacite}
\bibliography{refs}
\end{document}

@article{smiths,
author = {Smith, A.},
journal = {Journal of Apacite},
number = {1},
pages = {24305--36811},
title = {{How do I prefix?}},
volume = {1},
year = {2014}
}




Put one part of sentence outside $ math environment


I want the 'assume' written in normal style. So not within the math environment so it becomes italic.


This is my code



\documentclass{article}
\usepackage{amsmath}

\begin{document}

\subsection*{1.2}
\paragraph{a)}
$
\begin{aligned}[t]
&h(x)=x^4\cdot(2x^2-1)^3 \\
&assume u=2x^2-1 \\
&h(x)=x^4\cdot u^3 \\
&h'(x)=4x^3\cdot u^3+3u^3\cdot u'\cdot x^4
\end{aligned}
$

\end{document}




Vim color scheme for Latex


I would like suggestions for a Vim color scheme for Latex. I love gruvbox for coding but it fails to highlight most Latex commands. Besides, maybe something different for typesetting is a good idea (perhaps something designed for a light background, but it's not mandatory). I've tried Solarized but find the contrast to low for both light and dark versions.





Curved arrows on top of every node


I'm a beginner of latex and tikz. I want to have curved arrows on top of each node as in tikx example.


Following is my code.



\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}

\begin{figure}[h]
\centering
\begin{tikzpicture}
[scale=.8,auto=left,every node/.style={circle,fill=blue!20}]


\node (n1) at (9,8) {1};
\node (n2) at (6,7) {2};
\node (n3) at (5,5) {3};
\node (n4) at (6,3) {4};
\node (n5) at (9,2) {5};
\node (n6) at (12,3) {6};
\node (n7) at (13,5) {7};
\node (n8) at (12,7) {8};


\foreach \from/\to in {n1/n2,n2/n3,n3/n4,n4/n5,n5/n6,n6/n7,n7/n8,n8/n1,n1/n3,n1/n4,n1/n5,n1/n6,n1/n7,n2/n4,n2/n5,n2/n6,n2/n7,n2/n8,n3/n5,n3/n6,n3/n7,n3/n8,n4/n6,n4/n7,n4/n8,n5/n7,n5/n8,n6/n8}
\draw (\from) -- (\to);

\end{tikzpicture}
\end{figure}

\end{document}


How to draw curved arrows on top of every node?





How to change the shape of reference numbers in the bibliography


I have the following document. After compiling the document, the reference number in the bibliography appears as [ 1 ]. I would like to know if it would be possible to do the following customizations without introducing any external package.



  • [ 1 ] appears as [1], i.e., the reference number becomes italic.

  • [ 1 ] appears as [1], i.e., the reference number becomes bold.

  • [ 1 ] appears as enter image description here, i.e., just the reference number (and not the brackets) becomes bigger.


Of course I can do these manually, i.e., by writing



\bibitem[\mbox{\it{1}}]{one}
\bibitem[\mbox{\bf{1}}]{one}
\bibitem[\mbox{\Large{1}}]{one}


But I would like to do them automatically, i.e., for all references.



\documentclass{article}
\begin{document}
This is a text.

\begin{thebibliography}{MM}
\bibitem{one}
\end{thebibliography}
\end{document}




include graphics doesn't work


I am trying to put a image to my LaTeX document but it doesn't work... Does someone have an idea why??


This is the error message





listings: How can I highlight Makefiles?


I am trying to typeset a makefile using listings.


Now I would like some differential highlighting, e.g. for variables and ordinary commands in the target body. In this snippet, want to have different highlighting for VAR and for rm -rf, but it seems the only classes one can style are identifierstyle, stringstyle and keywordstyle. The latter is hardly useful and only highlights builtins (obviously), but identifierstyle applies to basically everything, making it utterly useless here.



\documentclass{scrartcl}
\usepackage{listings}
\begin{document}
\lstset{language=[gnu] make}
\lstset{
language=[gnu] make,
keywordstyle=\color{teal}\textbf,
stringstyle=\color{blue},
identifierstyle=\itshape
}
\begin{lstlisting}
VAR=foo
clean:
rm -rf $(VAR)
\end{lstlisting}
\end{document}


Can anyone suggest either an explanation for why this is so (what use is the language definition for make if there's no way around it?), or why it should be so, or – preferably – a workaround that does not involve manually specifying e.g. keywords?





How to remove numbering in article


I'm newbie in LaTeX so my question may seem a bit obvious. The issue is I want to remove the number before a section's title. For instance



\section{Section name}


produces the output, say,



3 Section name



But I want just “Section name” without “3”. How to do that?





Draw on background rectangle


I have the following code:



\documentclass[11pt,a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}

\begin{document}
\begin{tikzpicture}[framed, background rectangle/.style={draw=black!15,fill=black!5,rounded corners=1ex}]
\node (a) at (1,1) {a};
\end{tikzpicture}
\end{document}


It produces:


picture1


Now I want to have an ellipse on the top darker line like:


picture2


My problem is that this ellipse should be predefined by some definition which gets at #1 some text to be drawn inside the ellipse. Finally I want to save the "style" (maybe its an option I couldn't get it by long research) as mybackground. So my aim is to write:



\documentclass[11pt,a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}

\begin{document}
\begin{tikzpicture}[mybackground=#1]
\node (a) at (1,1) {a};
\end{tikzpicture}
\end{document}


To get the same result but now it should get #1 and write it in the ellipse.





Reduce space between footnote and page number


I am fairly new to LaTeX so please bear with me. I am trying to reduce the space between the footnote and the page numbering (see screenshots in the attachment). What command will do the trick?


Cheers, JAy Sample 1 Sample 2





add the page number next to the reference


I am using KOMA-script in lyx for my thesis. I use the bibliography for my reference. At the moment, I would like to add the page number next to the reference in Bibliography. Some thing likes this:



  1. S. J. Young, G. Evermann, M. J. F. Gales, T. Hain, D. Kershaw, G. Moore, J. Odell, D. Ollason, D. Povey, V. Valtchev, and P. C. Woodland, The HTK Book, version 3.4. Cambridge, UK: Cambridge University Engineering De- partment, 2006. [3], [15], [21]


The number [3],[15],[21] are the page number which the reference is used.


Is there anyone know the answer? Please help.


Thanks!





Biblatex abbrevation for no author/editor/year/etc. in alphabetic style


I use an alphabetic citestyle with biblatex. Sometimes I have entries where no author or editor or year is given. For example there is often no editor for a proceeding. At the moment I leave the entry for editor empty, but I would like to change this behavior so that biblatex automatically prints ‘s.ed.’ (lat. sine editore) in the bibliography if the field is empty.


When I just write this into the editor field I get s.ed. (Ed.). So I need to prevent the output of (Ed.), but I have no idea where to implement this.


In the same way the following entries should be printed (see link in german) when the field is usually required for the type of entry:



  • ‘s.a.’ (lat. sine auctore "without author")

  • ‘s.ed.’ (lat. sine editore "without editor")

  • ‘s.a.’ (lat. sine anno "without year")

  • ‘s.t.’ (lat. sine titulo "without title")

  • ‘s.l.’ (lat. sine loco "without location")

  • ‘s.ed.’ (lat. sine editore "without publisher")


At the moment I have no idea how to handle a missing author or year for the citations within the text, because sth. like [ABCs.a.] doesn't look good. Therefore, suggestions are welcome ;)


MWE:


The MWE illustrates the different cases of missing entries. I always wrote the abbreviation into the field (except for the second entry) by hand to illustrate what the output should look like. The output is correct except for the case where no editor is given, because the output is s.ed., ed. but it should be s.ed.. That is the first point where I need help to fix it.


If I want to change the abbreviation from latin to english later it would be a complicated task. So this is the second point where I need help with a solution for the following problem:


What I would like to achieve is to tell biblatex that I don't have a value for a specific field and I want to print the appropriate abbreviation to state to the reader that no information is available for that field (maybe a command like \noauthor). If I just leave the field empty it should be interpreted as ignoring the field like biblatex already do for the second entry noAuthor2 WARN - The field 'author' in entry 'noAuthor2' cannot be null, deleting it.



\documentclass{article}
\usepackage[backend=biber,style=alphabetic, autocite=footnote]{biblatex}


\begin{filecontents*}{bibliography.bib}
% Example for no author
@BOOK{noAuthor,
author = {s.a.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no author and field left empty
@BOOK{noAuthor2,
author = {},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no editor
@Collection{noEditor,
editor = {s.ed.},
title = {Book of light},
year = {1985},
publisher = {Springer Science+Business Media, LLC},
location = {New York}
}
% Example for no year
@BOOK{noYear,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {s.a.},
location = {New York},
publisher = {Pitman},
}
% Example for no title
@BOOK{noTitle,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {s.t.},
year = {1979},
location = {New York},
publisher = {Pitman},
}
% Example for no location
@BOOK{noLocation,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {s.l.},
publisher = {Pitman},
}
% Example for no publisher
@BOOK{noPublisher,
author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
location = {New York},
publisher = {s.ed.},
}
\end{filecontents*}


\addbibresource{bibliography.bib}
\nocite{*}

\begin{document}
\null
\vfill

\printbibliography
\end{document}




How can I choose what's inside the ouput of \cite?


I have a very small bibliography, if I reference the first element, the ouput will be [1]. I would like it to be [myowntext]. How is that possible ?





tikz: self loop with two arrows at the end (i.e. ending by ->>)


How to modify the following example to get a self loop labelled by "b" ENDING BY TWO ARROWS? The other self loop labelled by "a" should remains as it is.



\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,semithick]
\node[initial,initial where=above,initial distance=4mm,accepting,state] (s) {s};
\path
(s) edge [loop right] node {$a$} (s)
edge [->>,loop left] node {$b$} (s);
\end{tikzpicture}




Missing file error with Tikz intersections


I'm using TexPad for Mac, and I got stuck for the following error, how can I do?


I've tried to install some package but it didn't work! Or at least I didn't find the right one!


enter image description here





What is the best choice of format/package for including an animation into a powerdot presentation?


Me again :-(


System: Windows 7, MikTeX 2.9, WinEdt 7, LaTeX->Dvips->ps2pdf pipe


Trying the same animation as a year ago - just for the sake of being specific. This year I am teaching multivariable calculus so my needs will be a bit different, and this time I am aiming a bit higher.


Below you can see one animation I want to embed to a PowerDot presentation


enter image description here


It is 64 frames of GIF. Filesize about 150 kB. As we all know we cannot mix .gif and .eps (sigh), so something has to give. The animation is generated by Mathematica, so I have the options of putting it (as well as the still images) at least .eps, .gif, .swf, .avi, .png formats.


Last year I managed somehow using media9. That package is good for many a thing, but to use it I need to convert the animation to either .swf or .mp4. And that's were the problems lie. Try as I may I was unable to get the conversion to keep the quality. Hardly a surprise as neither of those formats is designed with compressing mathematical plots in mind. The avi-file has size 10MB at this quality, but both the swf and mp4 look cruddy in comparison - the curves look like they were first anti-aliased to 160x100 screen resolution and left at that with all the jaggies (your eyes are spared, because we cannot embed an mp4 to a question). The conversion service linked to in the previous question cannot be coerced to do lossless compression. To tell you the truth I don't know if there is anything like lossless mp4?



Are there options other than media9? This is only 64 frames (and I can compromise with a lower number). Or can you recommend a conversion program that produces higher quality mp4s from this kind of frames.



Will using the animate package help? Will that necessitate each frame to come from a separate file or can it handle an animated GIF?





@online bibliography biblatex


In my thesis, I need to have the webpage reference in the bibliography to look like this:



[#] Author (year). Title. Available: http://www.uia.no/no/portaler/bibliotek/finn_fagstoff



I need the title to be emphasis and the "Available to say "Tilgjengelig"(norwegian) Now it says "side" which means page. I am using the following in my preamble:



\documentclass[12pt]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[norsk]{babel}
\usepackage[
backend=biber,
style=ieee,
sorting=none
]{biblatex}
\addbibresource{referanser.bib}




Automatically insert column footnotes after each column (multicol+parnotes)?


I can simulate a column footnotes in multicol environment using parnotes like this. (It is needed because multicol does not support this.)



\documentclass[a4paper,fontsize=8pt]{scrartcl}
\usepackage[landscape,margin=6mm]{geometry} % using 4 columns, landscape
\usepackage{multicol} % multi column layout
\usepackage{parnotes}
\usepackage{lipsum}
\renewcommand\parnotefmt[1]{%
\footnoterule\footnotesize
#1
}
\renewcommand\parnoteintercmd{\newline\noindent}

\begin{document}
\begin{multicols*}{4} % 4 columns
\let\footnote\parnote
\lipsum[1-4]
Text comes here.\footnote{footnote text here} text continues
%%%% THIS LINE needs to be put in every column end, but how to determine it? %%%%
\hfill\vfill\parnotes\columnbreak and it continues here...
%%%% END THIS %%%%
\end{multicols*}
\end{document}


This works OK. The problem is that I have to manually adjust the footnotes every time I change something. i.e. I have to determine manually when a column ends and insert it there. Can this be automated? The best would be if I could somehow hook up \vfill\parnotes at a column break?





How to distinguish between superscripts and powers in typeset output?


There are some packages that allows one to distinguish between superscript (say footnote marks or say Isotopes in Chemistry) and math powers in the markup but is there a subtle little way by which we can distinguish between them in typeset output, so that it is clear to the reader just by looking at the typeset output. We could for example use a different font-variant for superscript.





samedi 29 novembre 2014

How to add a small line above footnote


I'm using {IEEEtran}. I've tried the following but it doesn't work.



\usepackage{fancyhdr}
\renewcommand{\footrulewidth}{0.4pt}




Vim-Latex: forward search doesn't work


I know people have had this kind of problem before, but I haven't been able to find the solution to my problem anywhere.


First of all, calling Tex_ForwardSearchLatex() with <leader>ls doesn't work. A command pops up and disappears (which, I suppose, is the viewer being called from the shell), but nothing happens. If the viewer is not already open, then this doesn't open the viewer.


So I tried a custom function from this thread, with the same result.



function! SyncTexForward()
let execstr = "silent !okular --unique %:p:r.pdf\\#src:".line(".")."%:p &"
exec execstr
endfunction
nmap <Leader>f :call SyncTexForward()<CR>


This solution is not supposed to work with \input and include subdocuments, but I'm not even there yet. I'm just trying to get the main document to work.


Then I tried a modified version of the custom function that supposedly works with subdocuments as well, but again to no avail.



function! SyncTexForward()
let execstr = "silent !okular --unique %:p:r.pdf\#src:".line(".")."%:p &"
exec execstr
endfunction
nmap <Leader>f :call SyncTexForward()<CR>


I thought it might be a problem with spaces in my file/directory names, but no. I've tried a file called test.tex at root with the same result. SyncTex is enabled and the viewers are on the path. The problem is likely what comes after \# (i.e. the crucial part), since :silent !okular --unique %:p:r.pdf works as expected.


I'm using Windows 7 and Okular, although I also tried SumatraPDF before, with exactly the same result. Frankly, I don't think the problem is with the viewer. Here's what I have in my tex.vim



let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_dvi='latex -synctex=1 --interaction=nonstopmode --src-specials $*'
let g:Tex_CompileRule_pdf='pdflatex -synctex=1 -interaction=nonstopmode $*'
let g:Tex_ViewRule_pdf='okular'




how to get mathematical equations into image in latex?


how to get mathematical equations into image in latex? I want the code that convert all equations into image in the pdf file after compile the tex file.





Why did my output change after changing machines?


I have a latex resume I recently tried to rebuild after losing my Windows laptop and swapping to a new Ubuntu laptop. On the Ubuntu machine, I installed TexMaker (as well as TexWorks for comparison -- but they both had the same result) and TexLive. I tried to build, but was missing tgpagella.sty. I added tgpagella.sty by downloading it from CTAN, moving it to ~/texmf/tex/latex/local/ and running sudo mktexlsr. I was then able to successfully build the resume, but the output is very different. Is there any reason why this should have changed? I've modified some of the text, but none of the parameters should have been modified.


For example, using tgpagella.sty seems to completely disregard boldness. Did I download the wrong file? Is there some settings I can easily tweak to make it appear more like the original?


source: http://pastebin.com/PsNnYbBx


result: http://imgur.com/a/YUCz8





How do I align the table where column going beyond the table


I have table where the column is extending beyond in the table in elsarticle. The MWE is as follows:



\documentclass{elsarticle}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}\begin{table}[H]
\setlength{\extrarowheight}{3pt}
\centering
\caption{Evaluation Metrics}
\begin{tabularx}{\textwidth}{>{\hsize=0.40\hsize}X>{\hsize=\hsize}X>{\hsize=\hsize}X>{\hsize=0.70\hsize}X}
\toprule
\textbf{Metric} &
\textbf{Formula} &
\textbf{Explanation} &
\textbf{Symbols} \\
\midrule
Response Time($q_{r}$) & $q_{r}(n) = \sum_{x=1}^{n}(p_{x}+a_{x})$ & The total time taken by the IVR system to respond to a query. & $p\Rightarrow$Navigation Time, $a\Rightarrow $Access Time,$x\Rightarrow$Service,$n\Rightarrow$Total number of Services
\\
\bottomrule
\end{tabularx}%
\label{tab:servicelist}%
\end{table}%


\end{document}


The screenshot of the table:


enter image description here





What is the recommended way to respond to bug reports for font packages where the bug is caused by characters missing from fonts?


I received a bug report for ebgaramond-maths. Although the issue is clearly caused by my package in one sense, it is not clear to me whether there is anything which I should do about it beyond expanding on the declaration in the documentation or setting it in \Huge. (\bfseries would, naturally, be ineffective in this context.)


The documentation already states that characters are missing from the OML encoding and notes this as a limitation of the font rather than the package. This is true.


What I did not quite appreciate is the fact that LaTeX does not generate terribly useful warnings about missing characters in this kind of case. Warnings are written to the log file but they are not exactly helpful:



Missing character: There is no ( in font EBGaramond12-Italic--oml-ebgaramond!
Missing character: There is no * in font EBGaramond12-Italic--oml-ebgaramond!


are the warnings generated for the following code:



\documentclass{article}

\usepackage{ebgaramond-maths}

\begin{document}

$\leftharpoonup \rightharpoonup$

\end{document}


which produces a blank page. In a longer document, it would hardly be obvious which symbols are, in fact, missing. (I'm guessing there is a correspondence in terms of encoding slot places but few users are going to see that or to know how to follow it up, even my guess is right.)


The reason for the blank page is that ebgaramond-maths has to declare an EBGaramond replacement for letters and LaTeX does not fall-back to another font when it fails to find characters in a font, in the way that it does if it fails to find the font itself. (At least, I think that is what is happening.)


So ebgaramond-maths magically makes characters disappear just as a text font which lacks characters can make letters and text symbols disappear: without the package, the symbol would appear; with the package, the symbol vanishes.


I'm not sure what I can or should do about this. The most appropriate workaround will, after all, depend on the rest of the user's font configuration (e.g. if other stuff is being used for maths). Although newtxmath is recommended for integrals and braces, this is ultimately up to the user and it would surely be inappropriate to draw on symbols from other fonts as part of ebgaramond-maths itself.


What is the recommended policy/practice/response to problems of this kind?





How to change algorithm caption to figure caption?


I'm using {IEEEtran} with algorithm2e package. I have one pseudocode/algorithm. My caption inside the algorithm environment appears as "Algorithm 1". Since I only have one algorithm, I think I should be using the figure caption instead. What do you think and how can I force my caption to appear as a figure caption?





Math in paper title is wrong size (too small)


The title of my paper contains a math mode expression. Usually this renders correctly, but with the style file I am using for the proceedings in which it will appear, the math mode part appears in normal-size font while the rest of the title is title-size, making the math part look very small. This also happens in section headings.


The style file is here: http://www.sheridanprinting.com/typedept/sig-alternate-2013.cls


Minimal working example:



\documentclass{sig-alternate-2013}
\begin{document}
\title{Proving that $1 > 0$}
\maketitle
\section{Proving that $1 > 0$}
\end{document}


Any advice as to how to to fix this would be great, thank you.





Chapter-Header Font Size - Too Big


I'm using the book class for a particular document, and I've run into a bit of problem. I don't know exactly how to explain this, so I'll just post an explanatory picture instead of sounding obscure.


iu


As you can see, that chapter-header is bleeding way too much. Is there a way to change the font size for that?


P.S: I know I should probably change the chapter title if it's that long, but I'd like to know how to solve this problem anyway.





Centering Headings - list of contents - but not chapters


I need to center some sections using normal size fonts in the front sections of a document, but not the chapter headings. So, I need a "Contents" and "List of Tables" and "List of Figures" centered before the list of the appropriate entries. Then, when I have chapter headings (1, and 1.1) those headings need to be on the left of the page (not centered, also in normal size fonts). References at the end, also needs to be centered like "Contents." The table of contents list all need to be in plain fonts (as shown). So, basically, I need to have "Contents," "List of Figures," etc., and "References" centered, without disturbing anything else. Any help is appreciated.



%% LyX 2.0.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc}


\makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage{titlesec} \titleformat*{\section}{\bfseries\normalsize} \titleformat*{\subsection}{\bfseries\normalsize} \titleformat*{\subsubsection}{\bfseries\normalsize}


\usepackage{titletoc}


\titlecontents{section} % set formatting for \section - % \subsection must be formatted separately [2.3em] % adjust left margin {\rmfamily} % font formatting {\contentslabel{2.3em}} % section label and offset {\hspace*{-2.3em}} {\titlerule*[1pc]{.}\contentspage}


\makeatother


\usepackage{babel} \begin{document} This is a test...


\tableofcontents{}


\listoffigures


and this is after the table of contents


\section{This is a section}


test one two three as seen on TV


\subsection{this is sub}


test sub...


\section{this is the second section}


\addcontentsline{toc}{section}{\protect\underline{\refname}}\bibliographystyle{plain} \bibliography{C:/Users/csibona/Documents/SocialNetwork}


\appendix


\addcontentsline{toc}{section}{\protect\underline{Appendix}}


\pagebreak{}


\pagebreak{}


\section{Ah, an appendix} \end{document}






Lemma without numbering


I want to use the lemma environment without numbering because I only have one lemma. If I use the package \newtheorem{lemma}{Lemma} I get "Lemma 1" in Italics. And if I do



\usepackage{amsthm}
\newtheorem*{lemma}{Lemma}


I get "Lemma" but in bold and plain font. I want the Italics but without the number. What should I do?





How do I get $\widecheck{G}$ in my LaTex program? [duplicate]



This question already has an answer here:




Hi I am trying to get $\widecheck{G}$, but my latex program (TexMaker) is giving an error, so maybe I have install a package. Any suggestions on the package I have to install?


BTW these are my packages and shortcuts in the preamble:



\documentclass[11pt,reqno]{amsart}

% Packages
\usepackage{graphicx}
\usepackage{amssymb,amsthm}
\usepackage{natbib}
\bibpunct{(}{)}{;}{;}{,}{,}
\usepackage{xr-hyper}
\usepackage[
colorlinks=true,
citecolor=blue,
urlcolor=blue,
linkcolor=blue
]{hyperref}
\usepackage{bm}
\usepackage{fullpage}
\usepackage{ amssymb }
\usepackage{caption} \captionsetup[figure]{labelfont=normalfont,labelsep=colon}

\pagestyle{plain}

\setlength{\parskip}{\baselineskip}
\setlength{\parindent}{12pt}

\setcounter{secnumdepth}{2}

\allowdisplaybreaks[4]

% Commenting/debugging
\let\IG\iffalse
\let\ENDIG\fi

%% Shortcuts
\newcommand{\td}[2]{\dfrac{d #1}{d #2}}
\newcommand{\std}[2]{\dfrac{d^2 #1}{d {#2}^2}}
\newcommand{\ctd}[3]{\dfrac{d^2 #1}{d #2 d #3}}

\newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\spd}[2]{\dfrac{\partial^2 #1}{\partial {#2}^2}}
\newcommand{\cpd}[3]{\dfrac{\partial^2 #1}{\partial #2 \partial #3}}

\newcommand{\pdi}[2]{\partial #1/\partial #2}

\newcommand{\LR}{\Leftrightarrow}
\newcommand{\Lg}{\mathcal{L}}
\newcommand{\half}{\tfrac{1}{2}}
\newcommand{\eqp}{\phantom{=}}
\newcommand{\eqs}{\buildrel s \over =}




Vim-Latex: compile to multiple formats at once


I want a PDF document ultimately, but I'm setting my default target format to dvi in order to use the YAP dvi viewer as the default (the PDF viewer can't do forward/inverse searches on my Windows machine, I believe due to spaces in file/directory names.) As a result, only the dvi file is updated when I compile. How can I compile to both dvi and pdf every time I compile? g:Tex_MultipleCompileFormats appears to be for something quite different.





Author biographys in elsarticle


Some Elsevier journals such as Ad Hoc Networks require author biographys at the end of the manuscript. From the guide for authors:



Vitae Include in the manuscript a short (maximum 100 words) biography of each author, along with a passport-type photograph accompanying the other figures.



Does the elsarticle document class define any specific environment for the author's to use for this (double column FWIW), similar to the way that IEEE journals have an IEEEbiography environment?


I came across the blog post Alternative LaTeX Format for Author Biography For a Journal Submission, though it's from 2009 and I'm hoping Elsevier has a standardized way of achieving the same result now without adding more packages.