Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
vlsi:resources:latex:syntax [06/11/2013 23:29]
panati
vlsi:resources:latex:syntax [06/11/2013 23:44] (versione attuale)
panati
Linea 25: Linea 25:
 \end{document} \end{document}
 </​code>​ </​code>​
 +
 +====== How to obtain a well organized source code ======
 +
 +It is possible to recall external parts of code in order to obtain a simpler and more clear structure of your main source code by using of the ''​\input{}''​ command.
 +
 +<​code>​
 +% Preamble:
 +\documentclass[options]{class type}
 +\usepackage{...}
 +...
 +
 +% body of your document
 +\begin{document}
 +
 +\input{section_01.tex} ​
 +\input{section_02.tex}
 +\input{section_03.tex}
 +...
 +\input{section_n.tex}
 +
 +\end{document}
 +</​code>​
 +
 +:!: Please note that in each .tex document (//​section_01.tex//,​ //​section_02.tex//​ etc.) you have __not to put__ any line just like ''​\begin{document}''​ or ''​\end{document}'',​ or packages'​ declarations:​ these are just //pieces of code// recalled in your text!!!
 +
  
  
Linea 505: Linea 530:
 ---- ----
  
-Last update: [[panati@to.infn.it|Serena Panati]] Nov 1st, 2013 //+Last update: [[panati@to.infn.it|Serena Panati]] Nov 6th, 2013 //
  
 ~~NOTOC~~ ~~NOTOC~~