I can use Greek & Latin characters alternately (by using the commands \greektext & \latintext respectively) but this I can do only within a single (main) tex file. But when I use the commands \latintext and \greektext in other auxiliary tex files e.g. chapters (whose code is afterwards entered in the main tex file via the command \import) then I get an error message.
The question is how can I alternate between Greek & Latin characters inside these auxiliary tex files ?
Thanks
General ⇒ alternate between Greek&Latin characters
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
alternate between Greek&Latin characters
This should be absolutely no problen, as long as all files have the same encoding. Can you show us a minimal working example? Maybe that is a limitation by
Have all files encoded in utf8, at least XeLaTeX and LuaLaTeX don't have any problems.
import
, but this command is from a package i don't know. Have all files encoded in utf8, at least XeLaTeX and LuaLaTeX don't have any problems.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: alternate between Greek&Latin characters
I fixed it (there was nothing to be fixed actually) just plain stupidity on my behalf.
In order for the commands \latintext and \greektext to function within a separate tex file,you have to write in that file at some point
"...\latintext somelatintext...", but then it's imperative to switch back to your primary language , which in my case is greek (otherwise you get an error message). So then you have to write \greektext. That did it for me.
In order for the commands \latintext and \greektext to function within a separate tex file,you have to write in that file at some point
"...\latintext somelatintext...", but then it's imperative to switch back to your primary language , which in my case is greek (otherwise you get an error message). So then you have to write \greektext. That did it for me.