I to all,

I am using The Legrand Orange Book template for writing a textbook for my students.

In Italy, it is strongly recommended, to insert the title of all paragraph in two languages: Italian and English. For the moment I have used this code that work:

\textit{\textbf{\Large Overview}}

with this result:

Result of my code

The question is this: I would create a new command like \section{text it}{text en} and obtain the same results.

This for \section and \subsection and - of course - in the index must appear only the Italian title.

Thanks to all!


I don't really know where the problem is. The following code gives me the result shown in the image.



Note: The spacing after the section title has been amended in structure.tex.

The solution presented in the other answer works as well.

| improve this answer | |
  • +1 Thankyou for your time. I try to insert your code into the template that I have strongly customizated. – Giacomo Alessandroni Jul 24 '17 at 7:13
  • Ok. Your code work fine without any kind of errors. Thankyou again. – Giacomo Alessandroni Jul 24 '17 at 8:03
  • @Giacomo So you are not using the template anymore. In that case you have to present more information to get a reliable answer. – Johannes_B Jul 24 '17 at 9:47
  • Yes and no. I using the template, but I have translate it into Italian (an easy operation), I have add same other environments and modified some others. Eventually, I have add several packages that I use for generate, e.g., Karnaugh maps, and remove others that generated some conflicts. But your code work very well. But the template is the same, now in Italian and with a strong orient for technical books. – Giacomo Alessandroni Jul 24 '17 at 10:00
  • @Giacomo If you replace the motor of your car with something different and ask people on the internet how to fix something, they assume the car is unchanged. I of course get your point, but you using the template is completely irrelevant here. The other answer works as well with tge template, but seemingly not with your modifications. – Johannes_B Jul 24 '17 at 11:19

How about the following?


\renewcommand{\section}[2]{\oldsection[#1]{#1\\ \textit{#2}}}



\section{Italian title}{English title}


enter image description here enter image description here

| improve this answer | |
  • Sorry, your commands are simple and pretty but do not work (I have insert it into structure.tex file). If I use them, I obtain a fatal error: the file main.tex, make an error in the command \input{structure}, where are definites all the parameter, packages, environments and so on. – Giacomo Alessandroni Jul 20 '17 at 10:35
  • Looks like it's interfering with something. I've expanded the code into a minimal working example. Try using that and copy all packages and macros you're using into that example to see where it starts to fail. – gablin Jul 20 '17 at 14:11
  • +1 I have tried to put the code also into main.tex, but with differen errors. I see that your code work by itself, but I need something that work with The Legrand Orange Book template. – Giacomo Alessandroni Jul 21 '17 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.