Hi,
I have two latex files, A.tex and B.tex in the same folder.
I would like to quote a few sentences from A.tex to B.tex. The main advantage is that when I change A.tex, the corresponding changes will appear in B.tex.
Are there any commands having this function?
Thanks a lot.
Frank
General ⇒ quotation
NEW: TikZ book now 40% off at Amazon.com for a short time.

quotation
You might want to keep an extra text or tex file with the common content and load it through
\input
.Code: Select all
Code, edit and compile here:
\documentclass[11pt]{article}\usepackage{blindtext}\begin{document}\blindtext\input{common.txt}\blindtext\end{document}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
quotation
Or save the content in a macro:
Code: Select all
Code, edit and compile here:
\documentclass[11pt]{article}\usepackage[english]{babel}\usepackage{blindtext}\usepackage{lipsum}\usepackage{csquotes}\newcommand{\myText}{This is the text to be quoted.}\newcommand{\myLongText}{\lipsum[2]}\begin{document}hello, \myText\myLongText\blindtextand later one can quote: \enquote{\myText}\begin{quote}\myLongText\end{quote}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.