This bst file seems to handle the multiple author issue (listing the first three authors and then compacting the rest with et al).
http://www.biology.emory.edu/Antia/pjohnson/bst/mbe.bst
Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts
Friday, July 19, 2013
Sunday, June 9, 2013
Matlab Output into latex table (Matlab to Latex Table)
This post comments on turning Matlab output into raw latex for inclusion in a latex table, for using \begin{tabular} \end{tabular}.
My preferred way to do this is to use latex.m to convert a Matlab matrix into latex format that can then be posted into tabular.
This is a common problem in simulation studies, where you use Matlab to summarize the results of a simulation study into a table.
I. Caveats regarding my solution:
1. There are probably fancier ways to do this now. I'm using Matlab2latex technology from about 2002. You can check on the central file exchange
2. Also, there might be a way to do this in base-Matlab. I got some file off of Central file exchange. I will note that sometimes a basic solution is very helpful because there are no extra bells/whistles and it is not hard to figure out the options of simple user supplied functions.
II. Other Posted Solutions:
1. http://pundit.pratt.duke.edu/wiki/MATLAB:LaTeX_Table_Writer
2. You can see more advanced ideas in the CFX
http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=latex+table
3. matrix2latex seems pretty good too.
III. Dependencies (what file exchange .m files am I using)
IV. My solution
1. use latex.m - This file will output a MATLAB numeric matrix in a format suitable to paste into a LaTeX tabular environment.
http://www.mathworks.com/matlabcentral/fileexchange/2832-latex
2. internal comment. see gmail FBlog with code. Also, see work from Screening paper.
My preferred way to do this is to use latex.m to convert a Matlab matrix into latex format that can then be posted into tabular.
This is a common problem in simulation studies, where you use Matlab to summarize the results of a simulation study into a table.
I. Caveats regarding my solution:
1. There are probably fancier ways to do this now. I'm using Matlab2latex technology from about 2002. You can check on the central file exchange
2. Also, there might be a way to do this in base-Matlab. I got some file off of Central file exchange. I will note that sometimes a basic solution is very helpful because there are no extra bells/whistles and it is not hard to figure out the options of simple user supplied functions.
II. Other Posted Solutions:
1. http://pundit.pratt.duke.edu/wiki/MATLAB:LaTeX_Table_Writer
2. You can see more advanced ideas in the CFX
http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=latex+table
3. matrix2latex seems pretty good too.
III. Dependencies (what file exchange .m files am I using)
IV. My solution
1. use latex.m - This file will output a MATLAB numeric matrix in a format suitable to paste into a LaTeX tabular environment.
http://www.mathworks.com/matlabcentral/fileexchange/2832-latex
2. internal comment. see gmail FBlog with code. Also, see work from Screening paper.
Sunday, June 10, 2012
Subscript, underscore in Latex
In the equation model, either will work fine. But for inline mathematics you notice a difference. Probalby the operator name isn't needed here, if \max is already defined.
$\max_i$
vs.
$\underset{i}{\operatorname{max}}$
$\max_i$
vs.
$\underset{i}{\operatorname{max}}$
Wednesday, May 23, 2012
Comment Command for Joint Editing
Idea is when we collaborate on a paper it is nice to have a method of leaving comments.
I. Solution write your own commands for each author to make a comment function: author1comment, author2comment.
preamble (need color, anything else?)
\usepackage{color}
commands:
%-----------------------
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern6pt \vbox{\kern6pt#1\kern6pt}\kern6pt\vrule}\hrule}}
\def\bfred#1{{\color{red}\bf#1}}
\def\bfblue#1{{\color{blue}\bf#1}}
\def\hlred#1{{\color{red}#1}}
\def\hlblue#1{{\color{blue}#1}}
\newcommand{\BHcomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{red}\bf#1} {\color{black}\bf -- BH\vskip 2mm}}\vskip 2mm}
\newcommand{\DCcomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{blue}\bf#1} {\color{black}\bf -- DC\vskip 2mm}}\vskip 2mm}
\newcommand{\RScomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{green}\bf#1} {\color{black}\bf -- RS\vskip 2mm}}\vskip 2mm}
%-----------------------
usage in the body
\BHcomment{Bret writes his comment here. He emphasizes his point with a double exclamation point}
II. There are other solutions:
1. I think there is a track changes package in latex...but I also think I hate this package
2. Good old fashion, Jim gets green, Bob gets red, and Nancy gets blue
pre-amble \usepackage{color}
in text
\textcolor{red}{Here is a comment from Bob, He is *not* happy with this sentence}
I. Solution write your own commands for each author to make a comment function: author1comment, author2comment.
preamble (need color, anything else?)
\usepackage{color}
commands:
%-----------------------
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern6pt \vbox{\kern6pt#1\kern6pt}\kern6pt\vrule}\hrule}}
\def\bfred#1{{\color{red}\bf#1}}
\def\bfblue#1{{\color{blue}\bf#1}}
\def\hlred#1{{\color{red}#1}}
\def\hlblue#1{{\color{blue}#1}}
\newcommand{\BHcomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{red}\bf#1} {\color{black}\bf -- BH\vskip 2mm}}\vskip 2mm}
\newcommand{\DCcomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{blue}\bf#1} {\color{black}\bf -- DC\vskip 2mm}}\vskip 2mm}
\newcommand{\RScomment}[1]{\vskip 2mm\boxit{\vskip 2mm{\color{green}\bf#1} {\color{black}\bf -- RS\vskip 2mm}}\vskip 2mm}
%-----------------------
usage in the body
\BHcomment{Bret writes his comment here. He emphasizes his point with a double exclamation point}
II. There are other solutions:
1. I think there is a track changes package in latex...but I also think I hate this package
2. Good old fashion, Jim gets green, Bob gets red, and Nancy gets blue
pre-amble \usepackage{color}
in text
\textcolor{red}{Here is a comment from Bob, He is *not* happy with this sentence}
Saturday, June 18, 2011
cases in latex, absolute value is a standard example
How to make cases in latex
\begin{equation*}
|x|=
\begin{cases} x & \text{if $x≥0$,}
\\
-x &\text{if $x\le 0$.}
\end{cases}
\end{equation*}
latex stuff about the equal sign
X = ^d Y
$$
This is not a good way to display equal in distribution.
Here is one hack (gotta be a better way). the b here says to put the equal sign on the bottom
$$
3 \begin{array}[b]{c}\alpha\\[-2ex]= \end{array} 5
$$
%b for bottom in \begin{array}[b] to mean the equal sign goes below
% could put it in \be \ee instead of the two dollar signs
Tuesday, June 14, 2011
line number correcting in math display - command form
I'd love to make this an environment so I could do begin and end, I couldn't figure this out.
But I do have these options (one acts like equation* the other like eqnarray*)
%analog for this - begin Line Number; end Line Number
%--------------------------------
\newcommand{\bLN}{\begin{linenomath*} \begin{equation*}}
\newcommand{\eLN}{\end{equation*} \end{linenomath*}}
%--------------------------------
%analog for this - begin Array Line Number; end Array Line Number
%--------------------------------
\newcommand{\baLN}{\begin{linenomath*} \begin{eqnarray*}}
\newcommand{\eaLN}{\end{eqnarray*} \end{linenomath*}}
%--------------------------------
%usage:
%\bLN
%a = b
%\eLN
\baLN
3 &=& 4 \\
&=& 7
\eaLN
But I do have these options (one acts like equation* the other like eqnarray*)
%analog for this - begin Line Number; end Line Number
%--------------------------------
\newcommand{\bLN}{\begin{linenomath*} \begin{equation*}}
\newcommand{\eLN}{\end{equation*} \end{linenomath*}}
%--------------------------------
%analog for this - begin Array Line Number; end Array Line Number
%--------------------------------
\newcommand{\baLN}{\begin{linenomath*} \begin{eqnarray*}}
\newcommand{\eaLN}{\end{eqnarray*} \end{linenomath*}}
%--------------------------------
%usage:
%\bLN
%a = b
%\eLN
\baLN
3 &=& 4 \\
&=& 7
\eaLN
Defining your own Environments
You can do this with a hack by defining a new command, e.g. define
\beq as a short cut for \begin{equation}
and
\eeq as a short cut for \end{equation}
But with a new environment foo you can simply use
\begin{foo}
\end{foo}
Two examples (one is a list so it needs to handle counters):
\newcounter{abc}
\newenvironment{abclist}
{\begin{list}{(\alph{abc})} {\usecounter{abc}} \setlength{\itemsep}{0pt}
\setlength{\labelwidth}{4em} }
{\end{list}}
\newenvironment{solution}{\ mbox{}\vspace*{\parskip}\\\sf Solution:}{\rm} \begin{abclist}
\item
\item
\item
\end{abclist}
\begin{solution}
Put the solution here
\end{solution}
\beq as a short cut for \begin{equation}
and
\eeq as a short cut for \end{equation}
But with a new environment foo you can simply use
\begin{foo}
\end{foo}
Two examples (one is a list so it needs to handle counters):
\newcounter{abc}
\newenvironment{abclist}
{\begin{list}{(\alph{abc})} {\usecounter{abc}} \setlength{\itemsep}{0pt}
{\end{list}}
\newenvironment{solution}{\
Usage:
\item
\item
\item
\end{abclist}
\begin{solution}
Put the solution here
\end{solution}
line numbers. Correction for math display
This problem is described in the style manual
the documentation is attached.
ctan.tug.org/tex-archive/ macros/latex/contrib/lineno/ ulineno.pdf
From the doc:
lineno.sty does not work well with display math. The parts of a paragraph
preceeding a display math will not get line numbers. The reason is that the
paragraph is not finished, but the part above the display is broken into lines
anyway.
quick answer:
preamble: \usepackage[mathlines]{lineno}
example use in text:
\begin{linenomath*}
$$
\mbox{eff}_i = \frac{X_i - Y_i}{X_i}.
$$
\end{linenomath*}
more complete answer:
\documentclass[11pt]{article}
\usepackage{amssymb,amsmath, amsthm, natbib, subfigure, color,
latexsym, ifthen,commath,setspace}
%\usepackage[draft]{graphicx}
\usepackage{graphicx}
\usepackage{rotating}
%line number has prolems in math mode
\usepackage[mathlines]{lineno}
\begin{document}
\linenumbers
%example use in text
\begin{linenomath*}
$$
\mbox{eff}_i = \frac{X_i - Y_i}{X_i}.
$$
\end{linenomath*}
the documentation is attached.
ctan.tug.org/tex-archive/
From the doc:
lineno.sty does not work well with display math. The parts of a paragraph
preceeding a display math will not get line numbers. The reason is that the
paragraph is not finished, but the part above the display is broken into lines
anyway.
quick answer:
preamble: \usepackage[mathlines]{lineno}
example use in text:
\begin{linenomath*}
$$
\mbox{eff}_i = \frac{X_i - Y_i}{X_i}.
$$
\end{linenomath*}
more complete answer:
\documentclass[11pt]{article}
\usepackage{amssymb,amsmath, amsthm, natbib, subfigure, color,
latexsym, ifthen,commath,setspace}
%\usepackage[draft]{graphicx}
\usepackage{graphicx}
\usepackage{rotating}
%line number has prolems in math mode
\usepackage[mathlines]{lineno}
\begin{document}
\linenumbers
%example use in text
\begin{linenomath*}
$$
\mbox{eff}_i = \frac{X_i - Y_i}{X_i}.
$$
\end{linenomath*}
Sunday, May 1, 2011
Latex: Mara Symbol Generator. Draw the symbol
Like the application you can get for the itouch or iphone
http://detexify.kirelabs.org/classify.html
http://detexify.kirelabs.org/classify.html
What is this?
Anyone who works with LaTeX knows how time-consuming it can be to find a symbol in symbols-a4.pdf that you just can't memorize. Detexify is an attempt to simplify this search.How do I use it?
Just draw the symbol you are looking for into the square area above and look what happens!My symbol isn't found!
The symbol may not be trained enough or it is not yet in the list of supported symbols. In the first case you can do the training yourself. In the second case just drop me a line (danishkirel@gmail.com)!latex line numbers
A great resource is here
http://www-d0.fnal.gov/Run2Physics/WWW/templates/lineno.html
you can do every 5 numbers if you use \modulolinenumbers[5]
the key is:
\usepackage{lineno}
\begin{document}
\linenumbers
*linenumber command comes after \begin{document}
Another example with more options:
Example for D0 PRL template with line numbers printed every 5 lines and starting at 1 for each page:
Notes:
http://www-d0.fnal.gov/Run2Physics/WWW/templates/lineno.html
you can do every 5 numbers if you use \modulolinenumbers[5]
the key is:
\usepackage{lineno}
\begin{document}
\linenumbers
*linenumber command comes after \begin{document}
Another example with more options:
Example for D0 PRL template with line numbers printed every 5 lines and starting at 1 for each page:
\RequirePackage{lineno}
\documentclass[aps,prl,twocolumn,showpacs,groupedaddress]{revtex4} % for review and submission
\usepackage{graphicx} % needed for figures
\usepackage{dcolumn} % needed for some tables
\usepackage{bm} % for math
\usepackage{amssymb} % for math
\begin{document}
\setpagewiselinenumbers
\modulolinenumbers[5]
\linenumbers
....
\documentclass[aps,prl,twocolumn,showpacs,groupedaddress]{revtex4} % for review and submission
\usepackage{graphicx} % needed for figures
\usepackage{dcolumn} % needed for some tables
\usepackage{bm} % for math
\usepackage{amssymb} % for math
\begin{document}
\setpagewiselinenumbers
\modulolinenumbers[5]
\linenumbers
....
Notes:
- In case that the table of content becomes garbled, add the \linenumbers command after the \tableofcontent command.
- To increase the font size of the line numbers add
\def\linenumberfont{\normalfont\small\sffamily}
(in two column layouts this might have the unwanted effect of line numbers of the right column overlapping with the text in the left column)
Wednesday, March 30, 2011
latex Table. A multicolumn example
I give a simple example and a more complicated one that needs to use sideways table (because it is too big).
%Example 0. See here
http://andrewjpage.com/index.php?/archives/43-Multirow-and-multicolumn-spanning-with-latex-tables.html
%Example A.
\begin{table}
\caption{Post-treatment Egg Count Varability (Simulated Data). We postulate that the data on a
single farm contains $n=13$ samples from the fixed $p$ model. This table presents such samples at three instances for horses in Table \ref{tbl:prevar} with $p=.95$.\label{tbl:postvar}} %postvar = varab ility in post-treatment count
%we want Hello centered so use c
\begin{center}
\begin{tabular}{cc|ccc}
& & \multicolumn{3}{|c|}{Hello}\\
horse & pre & post (sim 1) & post (sim 2) & post (sim 3) \\ \hline
1 & 3250 & 163 & 167 & 163 \\
2 & 450 & 28 & 26 & 26 \\
3 & 445 & 25 & 21 & 21 \\
4 & 300 & 20 & 17 & 14 \\
5 & 260 & 16 & 9 & 16 \\
6 & 1420 & 73 & 65 & 78 \\
7 & 505 & 20 & 20 & 27 \\
8 & 45 & 4 & 4 & 3 \\
9 & 1230 & 70 & 60 & 59 \\
10 & 325 & 12 & 19 & 14 \\
11 & 325 & 18 & 9 & 22 \\
12 & 100 & 2 & 1 & 2 \\
13 & 80 & 4 & 1 & 1
\end{tabular}
\end{center}
\end{table}
%Example B.
\usepackage{rotate}
You can get away without sideways table here
\begin{table}
\caption{Post-treatment Egg Count Varability (Simulated Data). We postulate that the data on a
single farm contains $n=13$ samples from the fixed $p$ model. This table presents such samples at three instances for horses in Table \ref{tbl:prevar} with $p=.95$.\label{tbl:postvar}} %postvar = varab ility in post-treatment count
%we want Hello centered so use c
\begin{center}
\begin{tabular}{cc|ccc|ccc|}
& & \multicolumn{3}{|c|}{Hello} & \multicolumn{3}{|c|}{Hello}\\
horse & pre & post (sim 1) & post (sim 2) & post (sim 3) & post (sim 1) & post (sim 2) & post (sim 3) \\ \hline
1 & 3250 & 163 & 167 & 163 & 168 & 210 & 93\\
\end{tabular}
\end{center}
\end{table}
%Example 0. See here
http://andrewjpage.com/index.php?/archives/43-Multirow-and-multicolumn-spanning-with-latex-tables.html
%Example A.
\begin{table}
\caption{Post-treatment Egg Count Varability (Simulated Data). We postulate that the data on a
single farm contains $n=13$ samples from the fixed $p$ model. This table presents such samples at three instances for horses in Table \ref{tbl:prevar} with $p=.95$.\label{tbl:postvar}} %postvar = varab ility in post-treatment count
%we want Hello centered so use c
\begin{center}
\begin{tabular}{cc|ccc}
& & \multicolumn{3}{|c|}{Hello}\\
horse & pre & post (sim 1) & post (sim 2) & post (sim 3) \\ \hline
1 & 3250 & 163 & 167 & 163 \\
2 & 450 & 28 & 26 & 26 \\
3 & 445 & 25 & 21 & 21 \\
4 & 300 & 20 & 17 & 14 \\
5 & 260 & 16 & 9 & 16 \\
6 & 1420 & 73 & 65 & 78 \\
7 & 505 & 20 & 20 & 27 \\
8 & 45 & 4 & 4 & 3 \\
9 & 1230 & 70 & 60 & 59 \\
10 & 325 & 12 & 19 & 14 \\
11 & 325 & 18 & 9 & 22 \\
12 & 100 & 2 & 1 & 2 \\
13 & 80 & 4 & 1 & 1
\end{tabular}
\end{center}
\end{table}
%Example B.
\usepackage{rotate}
You can get away without sideways table here
\begin{table}
\caption{Post-treatment Egg Count Varability (Simulated Data). We postulate that the data on a
single farm contains $n=13$ samples from the fixed $p$ model. This table presents such samples at three instances for horses in Table \ref{tbl:prevar} with $p=.95$.\label{tbl:postvar}} %postvar = varab ility in post-treatment count
%we want Hello centered so use c
\begin{center}
\begin{tabular}{cc|ccc|ccc|}
& & \multicolumn{3}{|c|}{Hello} & \multicolumn{3}{|c|}{Hello}\\
horse & pre & post (sim 1) & post (sim 2) & post (sim 3) & post (sim 1) & post (sim 2) & post (sim 3) \\ \hline
1 & 3250 & 163 & 167 & 163 & 168 & 210 & 93\\
\end{tabular}
\end{center}
\end{table}
latex Table Example Rotated (sideways?)
An example where you need to present the table in landscape for it to fit
\usepackage{rotating}\begin{sidewaystable}
\centering
\begin{tabular}{|llllllllp{1in}lp{1in}|}
\hline
Context &Length &Breadth/ &Depth &Profile &Pottery &Flint &Animal &Stone &Other &C14 Dates \\
& &Diameter & & & & &
Bones&&&\\
\hline
&&&&&&&&&&\\
\multicolumn{10}{|l}{\bf Grooved Ware}&\\
784 &--- &0.90m &0.18m &Sloping U &P1 &$\times$46 & $\times$8 &&$\times$2 bone& 2150$\pm$ 100 BC\\
785 &--- &1.00m &0.12 &Sloping U &P2--4 &$\times$23 & $\times$21 & Hammerstone &---&---\\
962 &--- &1.37m &0.20m &Sloping U &P5--6 &$\times$48 & $\times$57* & ---& ---&1990 $\pm$ 80 BC (Layer 4) 1870 $\pm$90 BC (Layer 1)\\
983 &0.83m &0.73m &0.25m &Stepped U &--- &$\times$18 & $\times$8 & ---& Fired clay&---\\
&&&&&&&&&&\\
\multicolumn{10}{|l}{\bf Beaker}&\\
552 &--- &0.68m &0.12m &Saucer &P7--14 &--- & --- & --- &--- &---\\
790 &--- &0.60m &0.25m &U &P15 &$\times$12 & --- & Quartzite-lump&--- &---\\
794 &2.89m &0.75m &0.25m &Irreg. &P16 $\times$3 & --- & --- &--- &---\\
\hline
\end{tabular}
\caption[Grooved Ware and Beaker Features, their Finds and Radiocarbon
Dates]{Grooved Ware and Beaker Features, their Finds and Radiocarbon
Dates; For a breakdown of the Pottery Assemblages see Tables I and
III; for the Flints see Tables II and IV; for the Animal Bones see
Table V.}\label{rotfloat2} \end{sidewaystable}
Saturday, March 5, 2011
Subfigure. Example of using Subfigure (need to update)
%This entry gives an example of using the subfigure package. Together with the iften to conditionally include graphs. The first figure gives an example without subfigure
%This needs to be updated to find a true subfigure example
%preamble
\usepackage{graphicx, subfigure, ifthen}
%Figures:
%-----------------------------------------------
\newboolean{includefigs}
\setboolean{includefigs}{true} %true = show graphs or false = don't
\newcommand{\condcomment}[2]{\ifthenelse{#1}{#2}{}}
%-----------------------------------------------
%main document
\condcomment{\boolean{includefigs}}{
\begin{figure}[t!]
\begin{center}
\includegraphics[scale=.3]{LHflo.eps}
\includegraphics[scale=.3]{LHmv.eps}
\includegraphics[scale=0.3]{LHhW.eps}
\caption{LH experiment. (L) plot of log $\flo$ versus cycle number ($\log F_j$ vs. $j$) for all 16 replicates of $LH_1$ (in blue) and all 16 replicates of $LH_2$ (in red); (C) the mean and variance (taken over the 15 replicates, which were retained for the data analysis, at each cycle) of log $\flo$ versus cycle number for $LH_1$ (blue) and $LH_2$ (red); (R) plot of $\hat{V}_k$ ($\times 10^7$) versus replicate number for $LH_1$ ($+$) and $LH_2$ ($o$).\label{fig:LH}}
\end{center}
\end{figure}
}
%This needs to be updated to find a true subfigure example
%preamble
\usepackage{graphicx, subfigure, ifthen}
%Figures:
%-----------------------------------------------
\newboolean{includefigs}
\setboolean{includefigs}{true} %true = show graphs or false = don't
\newcommand{\condcomment}[2]{\ifthenelse{#1}{#2}{}}
%-----------------------------------------------
%main document
\condcomment{\boolean{includefigs}}{
\begin{figure}[t!]
\begin{center}
\includegraphics[scale=.3]{LHflo.eps}
\includegraphics[scale=.3]{LHmv.eps}
\includegraphics[scale=0.3]{LHhW.eps}
\caption{LH experiment. (L) plot of log $\flo$ versus cycle number ($\log F_j$ vs. $j$) for all 16 replicates of $LH_1$ (in blue) and all 16 replicates of $LH_2$ (in red); (C) the mean and variance (taken over the 15 replicates, which were retained for the data analysis, at each cycle) of log $\flo$ versus cycle number for $LH_1$ (blue) and $LH_2$ (red); (R) plot of $\hat{V}_k$ ($\times 10^7$) versus replicate number for $LH_1$ ($+$) and $LH_2$ ($o$).\label{fig:LH}}
\end{center}
\end{figure}
}
Sunday, February 27, 2011
Latex Blogs - other blogs
1. this one is great
http://texblog.wordpress.com/
2. this is not a blog but a list of very specific tricks. Jakob's Latex Tricks
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html
http://texblog.wordpress.com/
2. this is not a blog but a list of very specific tricks. Jakob's Latex Tricks
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html
Saturday, February 26, 2011
Latex: Commenting out a Figure (comment out)
Latex: Commenting out a Figure
Comment out a figure
Note: I'm reposting some of blog posts now that the blog is searchable. It does not seem that the old posts show up in the search...
Sometimes it is helpful to typeset your documents without including the figures. For instance,
1. You want to share your .tex with someone but don't want to send them all of your eps figures.
2. You have one million figures in your document and this will allow you to compile it faster.
One solution is the following. You can use the ifthen package to comment out figures, by setting a global boolean at the head of your document.
Here are some latex details.
%Document Preamble
\usepackage{epsfig,graphicx, ifthen}
\newboolean{includefigs}
\setboolean{includefigs}{false} %true = show graphs or false = don't
\newcommand{\condcomment}[2]{\ifthenelse{#1}{#2}{}}
%Usage Example
\condcomment{\boolean{includefigs}}{
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.4]{Fig.eps}
\end{center}
\vskip -0.2in
\caption{Fun with graphics}
\end{figure}
Wednesday, February 23, 2011
CV with latex and bibtex (vitae). Curriculum Vitae
One issue is creating CV's with bibtex, there is an easy hack which is simply to use the .bbl file and then paste this into your latex file. Also you want to use the multbib package to allow multiple styles.
I think this is the best:
http://phaselockfel.blogspot.com/2009/03/prepare-resume-using-latex-and-bibtex.html
There is some good advice here:
http://tex.stackexchange.com/questions/4485/how-should-one-use-write18-with-bibtex
http://linux.dsplabs.com.au/resume-writing-example-latex-template-linux-curriculum-vitae-professional-cv-layout-format-text-p54/
http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/
http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/
I think this is the best:
http://phaselockfel.blogspot.com/2009/03/prepare-resume-using-latex-and-bibtex.html
There is some good advice here:
http://tex.stackexchange.com/questions/4485/how-should-one-use-write18-with-bibtex
http://linux.dsplabs.com.au/resume-writing-example-latex-template-linux-curriculum-vitae-professional-cv-layout-format-text-p54/
http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/
http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/
Friday, February 18, 2011
Latex. Comment out
Multiline comment in latex. There are many options for this (instead of using "%" at each line).
A simple solution is to define a command in the header.
\newcommand{\comment}[1]{}
Usage.
\comment{
This is all crap that I don't want to actually appear in the paper, so I will comment it out
}
A simple solution is to define a command in the header.
\newcommand{\comment}[1]{}
Usage.
\comment{
This is all crap that I don't want to actually appear in the paper, so I will comment it out
}
Tuesday, February 15, 2011
Subscribe to:
Posts (Atom)