Editing
Generate figures
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Merging everything as a LaTeX table== This script exemplifies how to prepare the input tex file for a series of NEB. It results in the table-temp.tex file: #!/bin/bash # Rodrigo García-Muelas # Version 5 May 2021 outputf="table-temp.tex" # output file pathfig="./raw/" # all figures are placed in a subfolder called raw, for have some order rm -f $outputf #side view must be reduced by a factor x0.9315184 if there is a metal at (,0,0) qt="\includegraphics[width=0.2060\\textwidth]{$pathfig" qs="\includegraphics[width=0.2000\\textwidth,trim=0mm 105mm 0mm 120mm,clip=true]{$pathfig" touch $outputf for k in `cat '0-list.txt'` ; do echo $k i=$k echo "\hline " >> $outputf echo "\multicolumn{4}{c}{ " $i " } \\\\* " >> $outputf echo $qt$i"-00_t.png} & " $qt$i"-02_t.png} & " $qt$i"-03_t.png} & " $qt$i"-05_t.png} \\\\* " >> $outputf echo $qs$i"-00_s.png} & " $qs$i"-02_s.png} & " $qs$i"-03_s.png} & " $qs$i"-05_s.png} \\\\ " >> $outputf done Then open this LaTeX file and compile it. It will call the previous table and compile all figures. \documentclass[a4paper,10pt]{article} \usepackage[a4paper,portrait,bindingoffset=5mm,left=10mm,right=10mm,top=10mm,bottom=10mm,footskip=5mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{longtable} \graphicspath { {raw/} } % Title Page \title{Figures} \author{Rodrigo Garcia-Muelas} \begin{document} \maketitle %\begin{abstract} %\end{abstract} This is a NEB table automatically generated in LaTeX. Perhaps you want to ``trim'' all figures before compiling with imagemagick. \begin{longtable}{ l l l l } \caption{Images 00, 02, 03, and 05 of a NEB } \label{t.figpca} \\ \hline 00 & 02 & 03 & 05 \\ \hline \endfirsthead \multicolumn{4}{c}{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\ \hline 00 & 02 & 03 & 05 \\ \hline \endhead \hline \multicolumn{4}{r}{{Continues on next page {} }} \\ \endfoot \hline \endlastfoot \input{./table-temp} \end{longtable} \end{document} --[[User:Rgarcia|Rgarcia]] 19:23, 12 December 2012 (CET)
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information