453 views
Skip to first unread message

Aleks Kleyn

unread,
Feb 22, 2012, 1:54:07 PM2/22/12
to latexus...@googlegroups.com

I know that online software of physics review converts latex directly to XML

 

Aleks Kleyn

http://alekskleyn.dyndns-home.com:4080/ 

http://sites.google.com/site/AleksKleyn/

http://arxiv.org/a/kleyn_a_1 

http://AleksKleyn.blogspot.com/

http://KleynAleks.blogspot.com/

 

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Peter Flynn
Sent: Wednesday, February 22, 2012 1:07 PM
To: latexus...@googlegroups.com
Subject: Re: [latexusersgroup] Latex to XML

 

Yes, the TeX4ht program converts LaTeX to DocBook XML and even RTF. But like all converters, it depends on the source LaTeX being cleanly written.

On 22 Feb 2012 18:02, "latexster" <sme...@rsc.org> wrote:

Hi,

I work in scientific publishing and our typesetters use a house-made
tool to convert Latex files supplied by the authors to MS Word and
then to XML for editing. Wouldn't it be simpler to convert directly
From Latex for XML? Do you have experience/knowledge of the pros and
cons of such converters?

Many thanks

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to
latexus...@googlegroups.com.
To unsubscribe from this group, send email to
latexusersgro...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/latexusersgroup?hl=en.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to
latexus...@googlegroups.com.
To unsubscribe from this group, send email to
latexusersgro...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/latexusersgroup?hl=en.

Aleks Kleyn

unread,
Feb 24, 2012, 6:30:57 PM2/24/12
to latexus...@googlegroups.com

This is not necessary to use eqnarray. You can use environment array or split inside of equation. When you learn a lot about equation you will see that you have a lot of flexibility to express yourself. You can also start from not so easy into to latex or go to Google and make search for ‘latex equation’. Also there is wikibook on LaTeX.

--
 
 
22.02.2012, 22:54, "Aleks Kleyn" <Aleks...@MailAPS.org>:

SankhSarkar

unread,
Feb 24, 2012, 8:43:01 PM2/24/12
to latexus...@googlegroups.com
just use latable no? simple for long equations.
Sankhadeep Sarkar


SankhSarkar

unread,
Feb 24, 2012, 8:44:05 PM2/24/12
to latexus...@googlegroups.com
sorry i meant mathtype
--
Sankhadeep Sarkar


Aleks Kleyn

unread,
Feb 24, 2012, 10:13:36 PM2/24/12
to Aleks Kleyn, latexus...@googlegroups.com
 

 For instance you can write (I use it very often)

\begin{equation}
\label{eq: eq1}
\begin{array}{r@{\,}l}
a&=b+c+d
\\
&+e+f
\end{array}
\end{equation}
or you can write
\begin{equation}
\label{eq: eq2}
\begin{split}
a&=b+c+d
\\
&+e+f
\end{split}
\end{equation}
In one of my papers I used equation
\begin{equation}
\label{eq: conjugation}
\begin{array}{r@{\,}l}
d^*\,c^*&
=(\re d-\im d)(\re c-\im c)
\\
&=\re d\ \re c-\re d\ \im c-\im d\ \re c+\im d\ \im c
\end{array}
\end{equation}
You can compile these equation to see if this is good for you

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of SankhSarkar


Sent: Friday, February 24, 2012 8:43 PM
To: latexus...@googlegroups.com

Subject: Re: [latexusersgroup] Re: controlling equation labels' position

 

 

 

just use latable no? simple for long equations.

Aleks Kleyn
 
 
25.02.2012, 03:30, "Aleks Kleyn" <Aleks...@MailAPS.org>:

Aleks Kleyn

unread,
Mar 19, 2012, 11:21:54 PM3/19/12
to latexus...@googlegroups.com
I use amsart package to prepare paper. By default any paragraph starts from ident, so it is easy to see where paragraph starts. However when I use minipage environment, paragraph starts without indent and even command \indent cannot help. What I can do in this case?
thank you
25.02.2012, 03:30, "Aleks Kleyn" <Aleks...@MailAPS.org>:

This is not necessary to use eqnarray. You can use environment array or split inside of equation. When you learn a lot about equation you will see that you have a lot of flexibility to express yourself. You can also start from not so easy into to latex or go to Google and make search for ‘latex equation’. Also there is wikibook on LaTeX.

Peter Flynn

unread,
Mar 20, 2012, 5:10:57 AM3/20/12
to latexus...@googlegroups.com
On Tue, Mar 20, 2012 at 3:21 AM, Aleks Kleyn <Aleks...@mailaps.org> wrote:
I use amsart package to prepare paper. By default any paragraph starts from ident, so it is easy to see where paragraph starts. However when I use minipage environment, paragraph starts without indent and even command \indent cannot help. What I can do in this case?

Re-set the indentation inside the minipage, eg

\begin{minipage}{9cm}\setlength{\parindent}{1em}
...
\end{minipage}

///Peter


Aleks Kleyn

unread,
May 18, 2012, 11:25:25 PM5/18/12
to latexus...@googlegroups.com
if i show parameter output-directory= then I can switch output of pdflatex to selected folder. Is it possible to change folder where all input files (tex called by input or aux files from different compilation) will reside?

Ole Peter Smith

unread,
May 19, 2012, 12:07:24 AM5/19/12
to latexus...@googlegroups.com
if you're on unix/linux:

# pushd inputdir;pdflatex mydoc;popd

0le

> --
> You received this message because you are subscribed to the Google Groups
> "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to
> latexusersgro...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/latexusersgroup?hl=en.

--
                                            /////
                                         ( O O )
=================oOO==(_)==OOo=================
            Every day and every hour, I'm Learning more
          The more I Learn, the less I Know about before
         The Less I know, the more I want to Look around
             Diggin' deeper into Higher Ground...  UB40
                                   .oooO Oooo.
==================(     )=(     )=====================
                                     \  (     )  /
                                      \_)   (_/
===============================================
                        Ole Peter Smith, IME, UFG
    http://www.mat.ufg.br/docentes/olepeter - ole at mat.ufg.br
===============================================
                   Life sure is a Mystery to be Lived
                      Not a Problem to be Solved
===============================================

Aleks Kleyn

unread,
May 19, 2012, 10:36:55 AM5/19/12
to latexus...@googlegroups.com
 

if you're on unix/linux:

# pushd inputdir;pdflatex mydoc;popd
 

0le

 
 
This is interesting idea. But I use windows.
19.05.2012, 07:25, "Aleks Kleyn" <Aleks...@MailAPS.org>:

Ole Peter Smith

unread,
May 19, 2012, 10:48:35 AM5/19/12
to latexus...@googlegroups.com

Hm, now you have more than one reason to stop suffering with windows...

However, writing a small batch yousef should be able to do the samek onde windows (despite it's poverty...).

cd indir
Pdflatex file

The problem would be how tom getúlio backup tom the direto where yousef were, which, however, may bem considered icing onde the cake!?

0le

Send via Android

--

Peter Flynn

unread,
May 19, 2012, 11:31:49 AM5/19/12
to latexus...@googlegroups.com
On Sat, May 19, 2012 at 3:48 PM, Ole Peter Smith <ole...@gmail.com> wrote:

Hm, now you have more than one reason to stop suffering with windows...

However, writing a small batch yousef should be able to do the samek onde windows (despite it's poverty...).

cd indir
Pdflatex file

The problem would be how tom getúlio backup tom the direto where yousef were, which, however, may bem considered icing onde the cake!?

$ man pdflatex
...
   -output-directory directory
       directory instead of the current directory.  Look up input
       files in directory first, the along the normal search path.

So I just tried this. I created a subdirectory foo and put a file test.tex in that directory.
Then from the level above, I typed
$ pdflatex -output-directory foo foo/test
and it processed the file and put all the output (.pdf, .aux, .log) into the foo subdirectory.

Then I repeated the same command, and the log file shows that it reads the .aux file from the subdirectory. I haven't tested this with \input or \include though.

However, if you are using Windows, I don't know if this is allowed. It works on Macs and other Unix-style systems.

///Peter

Aleks Kleyn

unread,
May 19, 2012, 1:49:57 PM5/19/12
to latexus...@googlegroups.com
------
cd works fine. I simply forgot about this command. each OS has its plus and minus. I have some important tool for me in windows, so at this time I do not consider to change OS, however it may be possible in future.
 
the original problem was next. When I submit paper to arXiv I have to do it without out files. So using latex option I create them in separate folder. However, At this time I have about 30 folders. Some of them have common file like index, biblio or file with macros. when i copy all to other PC to make sure that I have back up copy, it gets about 1000 files, more than half of which is dublicated, Also using this command I make sure that all files to submit to arXiv are in one folder and there is no extra files. At this time my batch file looks like
set TEXFILE=BVector
set CdOut=D:\Cd\05\Publishing.Out
set CdIn=D:\Cd\05\Publishing.In
set CdInC=%CdIn%\2012\%TEXFILE%
set TEXPARM=-output-directory=%CdOut%\2012\%TEXFILE%
copy ..\..\_LaTeX\Commands.tex %CdInC%\*.*
copy ..\..\_LaTeX\Biblio.tex %CdInC%\*.*
copy ..\..\_LaTeX\Index.tex %CdInC%\*.*
copy Free.Algebra.tex %CdInC%\*.*
copy Free.Algebra.Eq.tex %CdInC%\*.*
copy BVector.tex %CdInC%\*.*
copy BVector.tex %CdInC%\*.*
copy %CdOut%\2007\0701.238\0701.238.%TEXLANG%.aux %CdInC%\*.*
cd %CdInC%\
pdflatex %TEXPARM% %TEXFILE%.%TEXLANG%.tex

Aleks Kleyn

unread,
May 24, 2012, 2:32:28 PM5/24/12
to latexus...@googlegroups.com
I have code that i wrote since I do not see other.
 

\newcommand{\AddIndex}[2]%

{%

\@ifundefined{RefIndex#2}{%

\NameDef{RefIndex#2}{\pageref{index: #2}}%

\label{index: #2}%

}{%

\@ifundefined{Ref 1 Index#2}{%

\NameDef{RefIndex#2}{\pageref{index: #2}, \pageref{index 1: #2}}%

\NameDef{Ref 1 Index#2}{1}%

\label{index 1: #2}%

}{%

\@ifundefined{Ref 2 Index#2}{%

\NameDef{RefIndex#2}{\pageref{index: #2}, \pageref{index 1: #2}, \pageref{index 2: #2}}%

\NameDef{Ref 2 Index#2}{1}%

\label{index 2: #2}%

}{%

\message {error: extra AddIndex #2}

}

}

}%

%\NameDef{RefIndex#2}{\@nameuse{RefIndex#2},\pageref{index 1: #2}}%

{\bf #1}%

}%

The same way I probably will add 2 more levels. However i hope there is way to simplify this code. any idea is welcome.

Peter Flynn

unread,
May 24, 2012, 7:23:37 PM5/24/12
to latexus...@googlegroups.com
Perhaps if you could explain what it is supposed to do...

///Peter

Marina Vasques

unread,
May 24, 2012, 7:57:42 PM5/24/12
to latexus...@googlegroups.com
Sometimes I wish I could have Peter around, because he is always able to say what I would like to say, but somehow I can't do it. :)
It would simplify my life!

Aleks Kleyn

unread,
May 24, 2012, 9:41:53 PM5/24/12
to latexus...@googlegroups.com

Perhaps if you could explain what it is supposed to do...

///Peter

For years I accomulated in database index file that I use as common file for all my papers. To make sure that in certain paper will be only entry that i need there I use macro AddIndex
Originaly it had only code

\NameDef{RefIndex#2}{\pageref{index: #2}}%

 

\label{index: #2}%

 
 
It was enough since I had only one place in the text where I defined something. However I write now paper where I want to have few references for certain definitions. I tried to use code lilke

\NameDef{RefIndex#2}{\@nameuse{RefIndex#2},\pageref{index 1: #2}}

to concatanate strings, but this code gives error. So I wrote direct code for 2 or 3 definitions. It works. However if I will need more it will be harder. I think such code exist, For instance I can create list of authors as large as I wish.

Peter Flynn

unread,
May 25, 2012, 4:48:52 PM5/25/12
to latexus...@googlegroups.com
On Fri, May 25, 2012 at 12:57 AM, Marina Vasques <marina....@gmail.com> wrote:
Sometimes I wish I could have Peter around, because he is always able to say what I would like to say, but somehow I can't do it. :)

I wish I had the knowledge to answer the question :-)

///Peter

Aleks Kleyn

unread,
Jun 15, 2012, 5:40:19 PM6/15/12
to latexus...@googlegroups.com
recently in standard class I found code

\ifx\@empty\authors

 

\gdef\authors{#2}%

 

\else

 

\g@addto@macro\authors{\and#2}%

\fi

This code means that I can dynamically extennd content of macro created by \gdef.
Using this patern I wrote code

\addtocounter{Symbol}{1}

\@ifundefined{ViewSymbol#3}{%

\NameDef{ViewSymbol#3}{\textcolor{SymbColor}{#1}}%

\NameDef{RefSymbol#3}{\pageref{symbol\arabic{Symbol}: #3}}%

}{%

\expandafter\g@addto@macro\csname RefSymbol#3\endcsname{, \pageref{symbol\arabic{Symbol}: #3}}%

}%

\@namedef{LabelSymbol#3}{\label{symbol\arabic{Symbol}: #3}}%

I added \arabic{Symbol} to make different references to labels with the same #3. However I put attention when I print index I get in all pageref only last value of counter Symbol. How I can make sure that I put into command exactly current value of counter.
 
24.05.2012, 22:32, "Aleks Kleyn" <Aleks...@MailAPS.org>:

Aleks Kleyn

unread,
Jun 16, 2012, 12:37:38 PM6/16/12
to latexus...@googlegroups.com
Assume I have macro
\def\A{...}
in while loop I can create macros
\def\B{.} \def\B{..} \def\B{...}
О©╫
how I can write while loop in latex which iterate from first value of \B to the last?
Thank you

Werner Grundlingh

unread,
Jun 16, 2012, 12:47:14 PM6/16/12
to latexus...@googlegroups.com
Are you interested in something like

\iterate{A,B,C,D,efgh,I,J,klmn,O}

that iterates over the comma-separated values and does something with each entry?

Aleks Kleyn

unread,
Jun 16, 2012, 1:32:43 PM6/16/12
to latexus...@googlegroups.com
Are you interested in something like

 

\iterate{A,B,C,D,efgh,I,J,klmn,O}

 

that iterates over the comma-separated values and does something with each entry?
--  
No. Idea is little different. During compiling text I accumulate macros for index. I also has file with such indexes and get macros from there which have labels matching macro in memory. However it may happens that 2 or 3 entry match the same index. First idea was to use counter to distingush labels. I saved this counter in appropriate entry for \pageref. But I realized that I saved in memory not value of counter but reference to macro. When I print index I get the latest value of counter for all references. So like Kruzo I mark each label by dot. So if label comes second time it will have 2 dots. If label comes third tume it will have 3 dots. Now in place when I list index I know how much dots has particular label. But this is not number. This is macro like \gdef\A\{...}. I cannot create macro like {.,...,...}. So I cannot use loop \&for. But I can again create macros \def|B{.}, \def\B{..}. The only thing I need to know when to stop,
--
16.06.2012, 20:37, "Aleks Kleyn" <Aleks...@MailAPS.org>:
Assume I have macro
\def\A{...}
in while loop I can create macros
\def\B{.} \def\B{..} \def\B{...}
 

Werner Grundlingh

unread,
Jun 17, 2012, 3:13:19 PM6/17/12
to latexus...@googlegroups.com
I would suggest you compile a small example that illustrates your current layout and design, since I find it hard to understand what exactly you're after. Conclude the example with the desired output, even if its done manually. That way it should be clear what you're currently doing, and what your intended output should look like.


On Saturday, June 16, 2012 10:32:43 AM UTC-7, Aleks Kleyn wrote:
Are you interested in something like

 

\iterate{A,B,C,D,efgh,I,J,klmn,O}

 

that iterates over the comma-separated values and does something with each entry?
--  
No. Idea is little different. During compiling text I accumulate macros for index. I also has file with such indexes and get macros from there which have labels matching macro in memory. However it may happens that 2 or 3 entry match the same index. First idea was to use counter to distingush labels. I saved this counter in appropriate entry for \pageref. But I realized that I saved in memory not value of counter but reference to macro. When I print index I get the latest value of counter for all references. So like Kruzo I mark each label by dot. So if label comes second time it will have 2 dots. If label comes third tume it will have 3 dots. Now in place when I list index I know how much dots has particular label. But this is not number. This is macro like \gdef\A\{...}. I cannot create macro like {.,...,...}. So I cannot use loop \&for. But I can again create macros \def|B{.}, \def\B{..}. The only thing I need to know when to stop,
--
16.06.2012, 20:37, "Aleks Kleyn" <...>:

Aleks Kleyn

unread,
Jun 17, 2012, 9:36:15 PM6/17/12
to latexus...@googlegroups.com
I would suggest you compile a small example that illustrates your current layout and design, since I find it hard to understand what exactly you're after. Conclude the example with the desired output, even if its done manually. That way it should be clear what you're currently doing, and what your intended output should look like.
----
The idea of code is following
\def\A{+++}
\def\B{}
\whiledo{condition maybe like \B\A}
{
\g@addto@macro\B{+}
\ref{eq: 1,\B}
}
 
so output will look like
\ref{eq: 1+} \eq{eq: 1++} \eq{eq: 1+++}

Aleks Kleyn

unread,
Jun 18, 2012, 12:45:16 AM6/18/12
to latexus...@googlegroups.com
After some changes in my macro I put attention that errors appeared while reading aux file. When I opened aux file I put attention that some records have form
\newlabel{index: minor matrix: 3}{{2.1.1}{14}{\relax }{theorem.English.2.1.1}{}}
which looks OK. However there are records which have form
\newlabel{index: Standard representation: 1}{{2.1}{13}{\AddIndex {Standard representation}{Standard representation}\relax }{section.English.2.1}{}}
Both records was created from the same macro. However in second case the code of macro was included into newlabel. How I can make sure that newlabel always have the first format
Thank you
О©╫

Werner Grundlingh

unread,
Jun 18, 2012, 2:35:47 AM6/18/12
to latexus...@googlegroups.com
Assuming that you're creating these labels using \label{index: minor
matrix: 3} and \label{index: Standard representation: 1} and the fact
that you're loading hyperref (visible through the way \newlabel is
defined), the only clue might be given by where you use
\AddIndex{Standard representation}{Standard representation}. My
assumption is that you're using this as the sectional title, perhaps

\section{\AddIndex{Standard representation}{Standard representation}}

or something similar. In order to have the correct behaviour (as you
requested), you need to avoid this and set an index _outside_ the
sectional title.

Aleks Kleyn

unread,
Jun 18, 2012, 9:50:28 AM6/18/12
to latexus...@googlegroups.com
Both labels was created insed AddIndex. Usually I call AddIndex inside definition or theorem. You can see that minor matrix was labeled inside theorem. Second definition was made inside section, but not in title. If it would be in titile, it place would be in different part of newlabel. Like here
\newlabel{section: Single Transitive Representation of Group}{{3.5}{44}{Single Transitive \texorpdfstring {$T\star $}{T*}-Representation of Group\relax }{section.English.3.5}{}}
It is not clear why I see in first case just \relax and calling macro in second case. And for compilation of new text I do not need originally calling macro. The only thing that I need is label.
 
Sometimes it does more advance work
\newlabel{symbol: A without rows S: 8}{{2.1.1}{14}{\ShowEq {A without rows S}\ \ \relax }{theorem.English.2.1.1}{}}
but calling macro is \symb...
 
 
 
-----

Assuming that you're creating these labels using \label{index: minor

matrix: 3} and \label{index: Standard representation: 1} and the fact that you're loading hyperref (visible through the way \newlabel is defined), the only clue might be given by where you use \AddIndex{Standard representation}{Standard representation}. My assumption is that you're using this as the sectional title, perhaps

 

\section{\AddIndex{Standard representation}{Standard representation}}

 

or something similar. In order to have the correct behaviour (as you requested), you need to avoid this and set an index _outside_ the sectional title.

 

On Sun, Jun 17, 2012 at 9:45 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

Werner Grundlingh

unread,
Jun 18, 2012, 10:16:25 AM6/18/12
to latexus...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups
> "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to
> latexusersgro...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/latexusersgroup?hl=en.

You need to provide more detail in order for anyone to understand
what's going on. Please include a small, minimal, compilable example
that shows your definition of \AddIndex and perhaps \ShowEq with a
section or two, duplicating your existing layout that _reproduces_ the
problem. That is, so that your .aux file contains the "faulty"
\newlabel's and we can clearly see what causes it.

The motivation for the above is that we need to be on the same page
about your usage and output, and currently we're viewing it from
different angles.

Aleks Kleyn

unread,
Jun 19, 2012, 12:44:15 PM6/19/12
to latexus...@googlegroups.com
There is tex file that you requested
 
\documentclass{amsart}
\scrollmode
\usepackage{xr-hyper}
 \usepackage[unicode]{hyperref}
 \hypersetup{pdffitwindow=true}
 \hypersetup{pdfnewwindow=true}
 \hypersetup{pdfstartview={FitH}}
\makeatletter
\newcommand{\NameDef}[1]{%
 \expandafter\gdef\csname #1\endcsname%
}%
\newcommand{\ShowSymbol}[1]{%
 \@nameuse{ViewSymbol#1}%
}%
\newcommand{\symb}[3]{%

 \@ifundefined{ViewSymbol#3}{%
  \NameDef{ViewSymbol#3}{\textcolor{SymbColor}{#1}}%
  \NameDef{RefSymbol#3}{\pageref{symbol: #3}}%
  \@namedef{LabelSymbol#3}{\label{symbol: #3}}%
 }{%
 }%
 \ifcase#2%0
 \or%1
  $\@nameuse{ViewSymbol#3}$%
 \or%2
  \[\@nameuse{ViewSymbol#3}\]%
 \else%
 \fi%
 \@nameuse{LabelSymbol#3}%
}%

\newcommand{\AddIndex}[2]%
{%
 \@ifundefined{RefIndex#2}{%
  \NameDef{RefIndex#2}{\pageref{index: #2}}%
  \label{index: #2}%
 }{%
 }%
 {\bf #1}%
}%
\newcommand{\DefEq}[2]{%
 \@ifundefined{ViewEq#2}{%
  \NameDef{ViewEq#2}{#1}%
 }{%
  %\errmessage {second DefEq #2}%
 }%
}%
\newcommand\ShowEq[1]{%
 \@ifundefined{ViewEq#1}{%
  \message {error: missed ShowEq #1}
  }{%
 \@nameuse{ViewEq#1}%
 }%
}%
\makeatother
\DefEq
{
\symb{A_a}1{c row}
}
{c row}
\DefEq
{
\symb{{}^{[S]}A}1{A without rows S}
}
{A without rows S}
\begin{document}
\title{Test File}
\begin{abstract}
In this paper I consider test of latex.
\end{abstract}
\maketitle
\section{Concept of Generalized Index}
\label{section: Concept of Generalized Index}
To represent a matrix we will use one of the following forms:
\begin{description}
\item [\AddIndex{Standard representation}{Standard representation}]
in this case we write elements of matrix $A$ as $A^a_b$.
\item [\AddIndex{Alternative representation}{Alternative representation}]
in this case we write elements of matrix $A$ as ${}^aA_b$
or ${}_bA^a$.
\end{description}
\begin{definition}
\label{definition: notation for matrix}
I use the following names and notation for different
\AddIndex{minor matrices}{minor matrix}
of the matrix $A$
\begin{description}
\item
[\ShowEq{c row}\ \ ]
\AddIndex{\sups row}{c row}
with the index $a$ is generalization
of a column of a matrix. The upper index enumerates elements
of \sups rows and the lower index enumerates \sups rows.
\item [\ShowEq{A without rows S}\ \ ]
the minor matrix obtained from $A$ by deleting \subs rows with an index
from the set $S$
\end{description}
\qed
\end{definition}
\end{document}
 
Aux file follows
 
\relax
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\newlabel{tocindent-1}{0pt}
\newlabel{tocindent0}{0pt}
\newlabel{tocindent1}{17.77782pt}
\newlabel{tocindent2}{0pt}
\newlabel{tocindent3}{0pt}
\@writefile{toc}{\contentsline {section}{\tocsection {}{1}{Concept of Generalized Index}}{1}{section.1}}
\newlabel{section: Concept of Generalized Index}{{1}{1}{Concept of Generalized Index\relax }{section.1}{}}
\newlabel{index: Standard representation}{{1}{1}{\AddIndex {Standard representation}{Standard representation}\relax }{section.1}{}}
\newlabel{index: Alternative representation}{{1}{1}{\AddIndex {Alternative representation}{Alternative representation}\relax }{section.1}{}}
\newlabel{definition: notation for matrix}{{1}{1}{Concept of Generalized Index\relax }{section.1}{}}
\newlabel{index: minor matrix}{{1}{1}{Concept of Generalized Index\relax }{section.1}{}}
\newlabel{index: c row}{{1}{1}{Concept of Generalized Index\relax }{section.1}{}}
\newlabel{symbol: c row}{{1}{1}{\ShowEq {c row}\ \ \relax }{section.1}{}}
\newlabel{symbol: A without rows S}{{1}{1}{\ShowEq {A without rows S}\ \ \relax }{section.1}{}}
 
I hope it will help 

> --

> You received this message because you are subscribed to the Google

> Groups "LaTeX Users Group" group.

> To post to this group, send email to latexus...@googlegroups.com.

> To unsubscribe from this group, send email to

> latexusersgro...@googlegroups.com.

> For more options, visit this group at

> http://groups.google.com/group/latexusersgroup?hl=en.

 

You need to provide more detail in order for anyone to understand what's going on. Please include a small, minimal, compilable example that shows your definition of \AddIndex and perhaps \ShowEq with a section or two, duplicating your existing layout that _reproduces_ the problem. That is, so that your .aux file contains the "faulty"

Werner Grundlingh

unread,
Jun 21, 2012, 11:14:58 PM6/21/12
to latexus...@googlegroups.com
Your minimal example does not compile on my machine - it complains of a missing definition environment.

Aleks Kleyn

unread,
Jun 22, 2012, 12:10:52 AM6/22/12
to latexus...@googlegroups.com
 

 

 

Your minimal example does not compile on my machine - it complains of a missing definition environment.

-
I think you do not use amsart class.

Werner Grundlingh

unread,
Jun 22, 2012, 1:21:07 AM6/22/12
to latexus...@googlegroups.com


On Thu, Jun 21, 2012 at 9:10 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:
>  
>
>  
>
>  
>
> Your minimal example does not compile on my machine - it complains of a
> missing definition environment.
>
> -
> I think you do not use amsart class.
> --

Even the following minimal example does not provide a definition environment:

\documentclass{amsart}
\begin{document}
\begin{definition}
Here is a definition.
\end{definition}
\end{document}

Here is my file list:

 *File List*
  amsart.cls    2009/07/02 v2.20.1
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
    umsa.fd    2009/06/22 v3.00 AMS symbols A
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
    umsa.fd    2009/06/22 v3.00 AMS symbols A
    umsb.fd    2009/06/22 v3.00 AMS symbols B
 ***********

Aleks Kleyn

unread,
Jun 22, 2012, 10:08:10 AM6/22/12
to latexus...@googlegroups.com
22.06.2012, 08:10, "Aleks Kleyn" <Aleks...@MailAPS.org>:
 

 

 

Your minimal example does not compile on my machine - it complains of a missing definition environment.

-
You are right. There is new code

 
\documentclass{amsart}
\scrollmode
\usepackage{xr-hyper}
 \usepackage[unicode]{hyperref}
 \hypersetup{pdffitwindow=true}
 \hypersetup{pdfnewwindow=true}
 \hypersetup{pdfstartview={FitH}}
\newtheorem{theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}

\makeatletter
\newcommand{\NameDef}[1]{%
 \expandafter\gdef\csname #1\endcsname%
}%
\newcommand{\ShowSymbol}[1]{%
 \@nameuse{ViewSymbol#1}%
}%
\newcommand{\symb}[3]{%
 \@ifundefined{ViewSymbol#3}{%
  \NameDef{ViewSymbol#3}{#1}%
\AddIndex{c row}{c row}

with the index $a$ is generalization
of a column of a matrix. The upper index enumerates elements
of c rows and the lower index enumerates c rows.

\item [\ShowEq{A without rows S}\ \ ]
the minor matrix obtained from $A$ by deleting subs-rows with an index

from the set $S$
\end{description}
\qed
\end{definition}
\end{document}
i verified that it does not have errors. Below is aux file
 
\newlabel{definition: notation for matrix}{{1.1}{1}{\relax }{theorem.1.1}{}}
\newlabel{index: minor matrix}{{1.1}{1}{\relax }{theorem.1.1}{}}
\newlabel{index: c row}{{1.1}{1}{\relax }{theorem.1.1}{}}
\newlabel{symbol: c row}{{1.1}{1}{\ShowEq {c row}\ \ \relax }{theorem.1.1}{}}
\newlabel{symbol: A without rows S}{{1.1}{1}{\ShowEq {A without rows S}\ \ \relax }{theorem.1.1}{}}
 
You can see that the same macro creates different newlabels

Aleks Kleyn

unread,
Jun 23, 2012, 2:18:01 PM6/23/12
to latexus...@googlegroups.com
I decided to try wrapfig package. It works fine. The only problem that it puts a lot of empty space between text and figure when I show width of figure. Using advice from sty file I put width=0pt. After this empty space disappeared; however I got error

! LaTeX Error: Bad math environment delimiter.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                             
                                                 
l.102 \ShowEq{Measurement of Speed}
                                  
Your command was ignored.
 
The code of test file is bellow
 
\documentclass{amsart}
\scrollmode
\usepackage{xr-hyper}
 \usepackage[unicode]{hyperref}
 \hypersetup{pdffitwindow=true}
 \hypersetup{pdfnewwindow=true}
 \hypersetup{pdfstartview={FitH}}
\usepackage[all]{xy}
\usepackage{wrapfig}
\DefEq
{
\begin{wrapfigure}{r}{0pt}
\[
\xymatrix@R=10pt@C=7pt
{
t_2&&&&&&
\\
&&
\\
&&
\\
\ar@{}[uu]^<{\displaystyle tB_3}^>{\displaystyle tB_4}&&\ar@{--}[uull]
\\
&&
\\
&&\ar@{--}[uull]\ar@{}[uu]_<{\displaystyle F_1}_>{\displaystyle F_2}
\\
\\
\ar@{.}[rrrr]\ar@{.}[uuuuuuu]\ar@{--}[uurr]\ar@{~}[uuuurr]
&&\ar@{}[r]_<{xB_1}&&x_2
}
\]
\end{wrapfigure}
}
{Measurement of Speed}
\DefEq
{
$x_2=xB_1$
}
{x_2=}
\begin{document}
\title{Test File}
\begin{abstract}
In this paper I consider test of latex.
\end{abstract}
\maketitle
\section{Concept of Generalized Index}
\label{section: Concept of Generalized Index}
\ShowEq{Measurement of Speed}
Assume that the observer of reference frame $S_2$
placed at the point
\ShowEq{x_2=}
a device to send the light rays
to the observer.
At the time when world line of reference frame $S_3$
crosses world line of reference frame $S_2$,
the observer sends light ray to the point
\ShowEq{x_2=}.
The moment of arrival of the light ray to a point
\ShowEq{x_2=}
is represented
by the point $F_1$ on the diagram of event space.
The installed device sends an observer light ray
with frequency $\omega_1$. The observer receives this light
ray at time $tB_3$.
The moment of arrival of reference frame $S_3$ to a point
\ShowEq{x_2=}
is represented
by the point $F_2$ on the diagram of event space.
The installed device sends an observer light ray
with frequency $\omega_2$. The observer receives this light
ray at time $tB_4$.
The installed device sends an observer light ray
with frequency $\omega_1$. The observer receives this light
ray at time $tB_3$.
The moment of arrival of reference frame $S_3$ to a point
\ShowEq{x_2=}
is represented
by the point $F_2$ on the diagram of event space.
The installed device sends an observer light ray
with frequency $\omega_2$. The observer receives this light
ray at time $tB_4$.
\end{document}
Thank you

Aleks Kleyn

unread,
Aug 1, 2012, 2:40:38 PM8/1/12
to latexus...@googlegroups.com
I use pdflatex. any document assumes that I use document class which I select in first operator. When I have error in operator defined in the class I have pointer to place where I use this document. Is there a way to use some setting in the document such way that I will see what line in document class is responsible for error.
О©╫

Peter Flynn

unread,
Aug 2, 2012, 11:21:27 AM8/2/12
to latexus...@googlegroups.com
On Wed, Aug 1, 2012 at 7:40 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:
I use pdflatex. any document assumes that I use document class which I select in first operator. When I have error in operator defined in the class I have pointer to place where I use this document. Is there a way to use some setting in the document such way that I will see what line in document class is responsible for error.

I don't think so. By the time the document text is being processed, it's too late. TeX compiles  the class first, and once that's done, there is no backtrace information left. You usually get a clue from the context of the error, though. Have you got an example?

///Peter

Aleks Kleyn

unread,
Aug 2, 2012, 4:50:54 PM8/2/12
to latexus...@googlegroups.com

On Wed, Aug 1, 2012 at 7:40 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

I use pdflatex. any document assumes that I use document class which I select in first operator. When I have error in operator defined in the class I have pointer to place where I use this document. Is there a way to use some setting in the document such way that I will see what line in document class is responsible for error.

I don't think so. By the time the document text is being processed, it's too late. TeX compiles  the class first, and once that's done, there is no backtrace information left. You usually get a clue from the context of the error, though. Have you got an example?

///Peter

I do not think it possible to create minimal example and do not think it will be helpful. Today i have problem with one class, tommorow it may be different class. I need common idea how to handle such case. Is it possible to include class into compiled tex file so they will compile together?

Peter Flynn

unread,
Aug 2, 2012, 6:56:29 PM8/2/12
to latexus...@googlegroups.com
On Thu, Aug 2, 2012 at 9:50 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

On Wed, Aug 1, 2012 at 7:40 PM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

I use pdflatex. any document assumes that I use document class which I select in first operator. When I have error in operator defined in the class I have pointer to place where I use this document. Is there a way to use some setting in the document such way that I will see what line in document class is responsible for error.


I don't think so. By the time the document text is being processed, it's too late. TeX compiles  the class first, and once that's done, there is no backtrace information left. You usually get a clue from the context of the error, though. Have you got an example?

///Peter

I do not think it possible to create minimal example

No, probably not a minimal one. Anyway, part of the discipline of creating a minimal example is that you often find the error while creating it, peeling away the layers until something suddenly starts to work again :-)
 
and do not think it will be helpful. Today i have problem with one class, tommorow it may be different class.

Can you at least give some examples of the kind of error message you are encountering? I assume these are not syntactical (ie missing braces, unknown commands, etc) because those are authorial errors, unrelated to the class. Most classes are fairly robust, and while they might not format every possible combination of circumstances, the most common errors I find are simple misunderstandings of how something is supposed to work (eg getting the number or type of arguments wrong). In these cases the best help is the documentation, not the line number.
 
I need common idea how to handle such case. Is it possible to include class into compiled tex file so they will compile together?

That is what happens already. TeX is monolithic: it just reads everything in sequence and obeys the commands: once a command is completed, there is no evidence left in memory of where it came from — the line numbers in error messages are there because the command being processed at the time the error occurred was not completed.

The only time you get a line number from a class file is if there is a syntactical error in it, which does not happen with common classes, as they have been used and tested by thousands of people. The only way to change this behaviour is to rewrite the TeX program, which is non-trivial in the extreme.

I hope I have this right: I'm not a core programmer — you may want to ask again on comp.text.tex; there is a package called trace which may help, but it's intended for debugging the macros, not for debugging user documents. TeX's only features in debugging are \tracingall and the related commands, which will produce megabytes of output showing every step.

///Peter

Aleks Kleyn

unread,
Aug 2, 2012, 9:48:37 PM8/2/12
to latexus...@googlegroups.com
I understand what you tell and I agree with you. I had problem with maketitle and markboth. I found command traceall. From the trace I saw that maketitle uses command for href. This helped me to see that I overwrited maketitle. In most of the classes it was OK. However this class was not for online publishing, so I commented my code and now I do not have problem with maketitle.So traceall appeared very useful in this case. However for markboth I did not see any trace and this command is not part of this class. The most interesting that even markboth creates error it does its work. I can check if this command has error with other classes as well.
О©╫

Peter Flynn

unread,
Aug 3, 2012, 5:45:18 AM8/3/12
to latexus...@googlegroups.com
On Fri, Aug 3, 2012 at 2:48 AM, Aleks Kleyn <Aleks...@mailaps.org> wrote:
I understand what you tell and I agree with you. I had problem with maketitle and markboth. I found command traceall. From the trace I saw that maketitle uses command for href.

That is not standard. You must be using some package or class that does something extra (perhaps hyperref and a footnote in the title or author).
 
This helped me to see that I overwrited maketitle.

You mean you redefined it yourself?
 
In most of the classes it was OK. However this class was not for online publishing, so I commented my code and now I do not have problem with maketitle.So traceall appeared very useful in this case.

Good.
 
However for markboth I did not see any trace and this command is not part of this class. The most interesting that even markboth creates error it does its work. I can check if this command has error with other classes as well.

\markboth is defined in the LaTeX kernel and invoked by the \part and \chapter commands in the standard classes. It depends what is being passed to it: if you are using hyperref then you need to be very careful that you do not pass unprotected moving arguments into part and chapter titles (eg footnotes).

///Peter

Aleks Kleyn

unread,
Dec 24, 2012, 10:59:40 AM12/24/12
to latexus...@googlegroups.com
I cannot find how I can contact people who develop hyperref, but I sometimes see them in this list. Maybe minimal example will help.
\documentclass{amsart}
\scrollmode

 \usepackage[unicode]{hyperref}
 \hypersetup{pdffitwindow=true}
 \hypersetup{pdfnewwindow=true}
 \hypersetup{pdfstartview={FitH}}
\newtheorem{theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\makeatletter
\newcommand{\NameDef}[1]{%
 \expandafter\gdef\csname #1\endcsname%
}%
\newcommand{\ShowSymbol}[1]{%
 \@nameuse{ViewSymbol#1}%
}%
\newcommand{\symb}[3]{%
 \@ifundefined{ViewSymbol#3}{%

  \NameDef{ViewSymbol#3}{#1}%
  \NameDef{RefSymbol#3}{\pageref{symbol: #3}}%
  \@namedef{LabelSymbol#3}{\label{symbol: #3}}%
 }{%
 }%
 \ifcase#2%0
 \or%1
  $\@nameuse{ViewSymbol#3}$%
 \or%2
  \[\@nameuse{ViewSymbol#3}\]%
 \else%
 \fi%
 \@nameuse{LabelSymbol#3}%
}%
\newcommand{\AddIndex}[2]%
{%
 \@ifundefined{RefIndex#2}{%
  \NameDef{RefIndex#2}{\pageref{index: #2}}%
  \label{index: #2}%
 }{%
 }%
 {\bf #1}%
}%
\newcommand{\DefEq}[2]{%
 \@ifundefined{ViewEq#2}{%
  \NameDef{ViewEq#2}{#1}%
 }{%
  %\errmessage {second DefEq #2}%
 }%
}%
\newcommand\ShowEq[1]{%
 \@ifundefined{ViewEq#1}{%
  \message {error: missed ShowEq #1}
  }{%
 \@nameuse{ViewEq#1}%
 }%
}%
\makeatother
\DefEq
{

\symb{A_a}1{c row}
}
{c row}
\DefEq
{
\symb{{}^{[S]}A}1{A without rows S}
}
{A without rows S}
\begin{document}
\title{Test File}
\begin{abstract}
In this paper I consider test of latex.
\end{abstract}
\maketitle
\section{Concept of Generalized Index}
\label{section: Concept of Generalized Index}
aux file has form
 
\relax
\providecommand\hyper@newdestlabel[2]{}

\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}

\newlabel{tocindent-1}{0pt}
\newlabel{tocindent0}{0pt}
\newlabel{tocindent1}{17.77782pt}
\newlabel{tocindent2}{0pt}
\newlabel{tocindent3}{0pt}
\@writefile{toc}{\contentsline {section}{\tocsection {}{1}{Concept of Generalized Index}}{1}{section.1}}
\newlabel{section: Concept of Generalized Index}{{1}{1}{Concept of Generalized Index}{section.1}{}}
\newlabel{index: Standard representation}{{1}{1}{\AddIndex {Standard representation}{Standard representation}}{section.1}{}}
\newlabel{index: Alternative representation}{{1}{1}{\AddIndex {Alternative representation}{Alternative representation}}{section.1}{}}
\newlabel{definition: notation for matrix}{{1.1}{1}{}{theorem.1.1}{}}
\newlabel{index: minor matrix}{{1.1}{1}{}{theorem.1.1}{}}
\newlabel{index: c row}{{1.1}{1}{}{theorem.1.1}{}}
\newlabel{symbol: c row}{{1.1}{1}{\ShowEq {c row}\ \ }{theorem.1.1}{}}
\newlabel{symbol: A without rows S}{{1.1}{1}{\ShowEq {A without rows S}\ \ }{theorem.1.1}{}}
There is one more case. In ome paper I used commands
\def\titleA{part one}
\part{\titleA}
this \titleA appeared in aux file and when I used aux file in other document i got error. But in that document I do not care about \titleA.
 
Thank you.
18.06.2012, 08:45, "Aleks Kleyn" <Aleks...@MailAPS.org>:

Peter Flynn

unread,
Dec 24, 2012, 11:03:45 AM12/24/12
to latexusersgroup

Not on this list,  try comp.text.tex newsgroup

--

Peter Flynn

unread,
Dec 25, 2012, 4:51:56 PM12/25/12
to latexus...@googlegroups.com
On Mon, Dec 24, 2012 at 3:59 PM, Aleks Kleyn <aleks...@mailaps.org> wrote:
I cannot find how I can contact people who develop hyperref

As I posted briefly yesterday, developers tend to read the Usenet newsgroup comp.text.tex. This list is for LaTeX users, rather than developers. 

Posting a message there will ensure it is seen by the authors. This is preferable to emailing the authors directly.

The hyperref.sty file and manual show the current maintainer is Heiko Oberdiek, and Sebastian Rahtz as co-author. Mr Google will show you addresses for them.

If you have code to contribute, there is a mailing list for developers at http://mail.gnu.org.ua/mailman/listinfo/hyperref-dev

///Peter

Aleks Kleyn

unread,
Jan 22, 2013, 5:39:48 PM1/22/13
to latexus...@googlegroups.com

Is it possible when I compile LaTeX file to create from it few PDF files?

Werner Grundlingh

unread,
Jan 22, 2013, 5:42:27 PM1/22/13
to latexus...@googlegroups.com
You should perform some post-production on the output PDF using the PDF Toolkit (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/).

Peter Flynn

unread,
Jan 22, 2013, 6:32:50 PM1/22/13
to latexusersgroup

You mean create more than one output file?
No,  I don't think pdflatex can do that, but perhaps LuaTeX or XeTeX can.
But tkpdf or many PDF utilities can split one PDF files into different files.

P

--

Aaron Webster

unread,
Jan 23, 2013, 5:23:47 AM1/23/13
to latexus...@googlegroups.com

On 22 Feb 2012 18:02, "latexster" <sme...@rsc.org> wrote:

Hi,

I work in scientific publishing and our typesetters use a house-made
tool to convert Latex files supplied by the authors to MS Word and
then to XML for editing. Wouldn't it be simpler to convert directly
From Latex for XML? Do you have experience/knowledge of the pros and
cons of such converters?


There's another tool called 'pandoc' which IMHO does this conversion fairly well.  One of the main problems with such tools is expanding macros.  For example, I might write 

    \newcommand{\intinfty}{\int_{-\infty}^{\infty}}

somewhere in my preamble, which might not get picked up properly by the conversion tool.  Or if I used the siunitx package and said \SI{50}{\nano\meter}.

Aleks Kleyn

unread,
Aug 17, 2014, 12:31:32 AM8/17/14
to latexus...@googlegroups.com

I use ams latex documents. When I use package Babel to use Russian text I get following message

Package babel Info: Redefining russian shorthand "~

(babel)             in language  on input line 40.

This message I see in log in so huge amount that it makes hard to find real errors. Message appeared recently. I appreciate idea how to get rid from this message .

 

Thank you

 

Aleks Kleyn

Derivative in Banach algebra

x2=1x+x1

x2dx=dx x+x dx

 

 

 

Aleks Kleyn

unread,
Sep 6, 2014, 3:35:22 PM9/6/14
to latexus...@googlegroups.com

I use ams latex documents. When I use package Babel to use Russian text I get following message

Package babel Info: Redefining russian shorthand "~

(babel)             in language  on input line 40.

This message I see in log in so huge amount that it makes hard to find real errors. Message appeared recently. I appreciate idea how to get rid from this message .

 

Thank you

 

Aleks Kleyn

Derivative in Banach algebra

Marina Vasques

unread,
Sep 10, 2014, 11:33:05 AM9/10/14
to latexus...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.

To post to this group, send email to latexus...@googlegroups.com.

Aleks Kleyn

unread,
Sep 19, 2014, 1:10:29 AM9/19/14
to latexus...@googlegroups.com

Marina Vasques

unread,
Sep 19, 2014, 8:59:13 AM9/19/14
to latexus...@googlegroups.com
I see. I thought you only wanted to hide the error message so your log would be easier to read. :) My mistake.

Aleks Kleyn

unread,
Dec 28, 2014, 9:40:30 PM12/28/14
to latexus...@googlegroups.com

Package babel Info: Redefining russian shorthand "|

(babel)             in language  on input line 18.

Package babel Info: Redefining russian shorthand "~

(babel)             in language  on input line 18.

 

Playing with packages I found that there is correlation between Babel and pdflatex. So minimal package has form

\documentclass{amsart}

\scrollmode

\usepackage{cmap}

\usepackage[T2A,T2B]{fontenc}

\usepackage[cp1251]{inputenc}

\usepackage[english,russian]{babel}

\selectlanguage{russian}

\usepackage[unicode]{hyperref}

\begin{document}

\author{Автор}

\title{Рассказ}

\maketitle

 

Рассказ мелодия.

Рассказ мелодия.

Рассказ мелодия.

Рассказ мелодия.

\end{document}

 

I will appreciate if somebody has an idea how get rid from the message above.\

 

Thank you,

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Marina Vasques


Sent: Wednesday, September 10, 2014 11:32 AM
To: latexus...@googlegroups.com
Subject: Re: [latexusersgroup] Babel and Russian

Peter Flynn

unread,
Dec 29, 2014, 5:48:48 AM12/29/14
to latexusersgroup

Have you tried putting the \selectlanguage after the \begin{document}?

--

Aleks Kleyn

unread,
Dec 29, 2014, 10:07:34 AM12/29/14
to latexus...@googlegroups.com

I tried to comment language statement, as well removed unicode option (I had suspicion about it), but log was the same.

Aleks Kleyn

unread,
Dec 29, 2014, 10:14:14 AM12/29/14
to Aleks Kleyn, latexus...@googlegroups.com

From: Aleks Kleyn [mailto:Aleks...@optimum.net]
Sent: Monday, December 29, 2014 10:06 AM
To: 'latexus...@googlegroups.com'
Subject: RE: [latexusersgroup] Babel and Russian

 

I tried to comment language statement, as well removed unicode option (I had suspicion about it), but log was the same.

 

Aleks Kleyn

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Peter Flynn


Sent: Monday, December 29, 2014 5:49 AM
To: latexusersgroup
Subject: RE: [latexusersgroup] Babel and Russian

 

Have you tried putting the \selectlanguage after the \begin{document}?

Aleks Kleyn

unread,
Dec 29, 2014, 10:21:03 AM12/29/14
to latexus...@googlegroups.com

From: Aleks Kleyn [mailto:Aleks...@MailAPS.org]
Sent: Monday, December 29, 2014 10:14 AM
To: 'Aleks Kleyn'; 'latexus...@googlegroups.com'
Subject: RE: [latexusersgroup] Babel and Russian

 

I change order, call hyperref first, and then Babel, it looks message disappears. I will check it on larger text. Probably they use some common future.

 

Aleks Kleyn

 

From: Aleks Kleyn [mailto:Aleks...@optimum.net]

Sent: Monday, December 29, 2014 10:06 AM
To: 'latexus...@googlegroups.com'
Subject: RE: [latexusersgroup] Babel and Russian

 

I tried to comment language statement, as well removed unicode option (I had suspicion about it), but log was the same.

 

Aleks Kleyn


Sent: Monday, December 29, 2014 5:49 AM
To: latexusersgroup
Subject: RE: [latexusersgroup] Babel and Russian

 

Have you tried putting the \selectlanguage after the \begin{document}?

Aleks Kleyn

unread,
Jul 8, 2017, 12:38:04 AM7/8/17
to latexus...@googlegroups.com

Werner Grundlingh

unread,
Jul 8, 2017, 2:20:48 AM7/8/17
to latexus...@googlegroups.com
Start by looking at the packages under the CTAN topic "subdocs":

Peter Flynn

unread,
Jul 8, 2017, 5:14:04 AM7/8/17
to latexusersgroup
pdftk is the best tool for this.

Peter

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.
Visit this group at https://groups.google.com/group/latexusersgroup.

Aleks Kleyn

unread,
Jul 8, 2017, 11:38:56 AM7/8/17
to latexus...@googlegroups.com

 

Aleks Kleyn

http://alekskleyn.dyndns-home.com:4080/ 

http://sites.google.com/site/AleksKleyn/

http://arxiv.org/a/kleyn_a_1 

http://AleksKleyn.blogspot.com/

http://KleynAleks.blogspot.com/

 

Derivative in Banach algebra

dx2

=1x+x1

dx

  d x2 =(1x+x1) ◦dx=dx x+x dx

 

 

 

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Peter Flynn
Sent: Saturday, July 8, 2017 5:14 AM
To: latexusersgroup
Subject: Re: [latexusersgroup] generating single source file

 

pdftk is the best tool for this.

 

Peter

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

--

You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

Abel Siqueira

unread,
Jul 8, 2017, 5:12:49 PM7/8/17
to latexus...@googlegroups.com
Hello,

try latexpand.

Best,

Abel Soares Siqueira
Assistant Professor at the Federal University of Paraná
Optimization Group - http://opt.ufpr.br

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

Peter Flynn

unread,
Jul 8, 2017, 6:39:53 PM7/8/17
to latexusersgroup
> Pdftk works with pdf file

Sorry, I must have misunderstood what you were asking.

(1) This means you create separate PDF files, right? One from each .tex file?
Or do you mean you use \include in a driver document?
(2) I really don't understand the question. If you want to combine your separate .tex files into one large .tex file then just do it in your editor with copy and paste. Or if you are using Linux or Mac, use the cat command in a Command window. I don't understand any problem here.

LaTeX always produces a single PDF file from a single .tex file. 

(3) This is why I said to use pdftk. It can join all your separate PDF files into one big PDF file.

There are three ways to get a single PDF:

a) use a driver file and \include{chap1}...\include{chap2}...etc etc [1]

b) use a single monolithic .tex file with everything in it [2]

b) keep separate .tex files and create separate PDF files, then use pdftk to join them [3]

Can you explain more about what you want to do?

///Peter

Aleks Kleyn

unread,
Jul 8, 2017, 8:15:56 PM7/8/17
to latexus...@googlegroups.com

For instance I have text like

\begin{document}

\include{a1}

\include{a2}

\end{document}

 

File a1.tex has format

This is include file 1.

 

File a2.tex has format

And this is include file 2

 

I want to generate document

 

\begin{document}

This is include file 1.

 

And this is include file 2

\end{document}

 

So I do not create few pdf files from one, but join different tex files into one. The problem that journal where I want to sent paper requires not few tex file, but single one. At this time I wrote small text on visual basic. The only that I need to add is properly handle \if \fi. However, may be there is better way.

 

I usually do it like you wrote: copy and paste. But it takes a time and if I want to change something, I need to repeat this procedure or make search in too large file.

 

Aleks Kleyn

http://alekskleyn.dyndns-home.com:4080/ 

http://sites.google.com/site/AleksKleyn/

http://arxiv.org/a/kleyn_a_1 

http://AleksKleyn.blogspot.com/

http://KleynAleks.blogspot.com/

 

Derivative in Banach algebra

dx2

=1x+x1

dx

  d x2 =(1x+x1) ◦dx=dx x+x dx

 

 

 

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Peter Flynn
Sent: Saturday, July 8, 2017 6:40 PM
To: latexusersgroup
Subject: Re: [latexusersgroup] generating single source file

 

> Pdftk works with pdf file

--

You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

Aleks Kleyn

unread,
Jul 8, 2017, 8:20:12 PM7/8/17
to latexus...@googlegroups.com

 

Aleks Kleyn

http://alekskleyn.dyndns-home.com:4080/ 

http://sites.google.com/site/AleksKleyn/

http://arxiv.org/a/kleyn_a_1 

http://AleksKleyn.blogspot.com/

http://KleynAleks.blogspot.com/

 

Derivative in Banach algebra

dx2

=1x+x1

dx

  d x2 =(1x+x1) ◦dx=dx x+x dx

 

 

 

From: nepp...@gmail.com [mailto:nepp...@gmail.com] On Behalf Of Abel Siqueira
Sent: Saturday, July 8, 2017 5:12 PM
To: latexus...@googlegroups.com
Subject: Re: [latexusersgroup] generating single source file

 

Hello,

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.

Abel Siqueira

unread,
Jul 8, 2017, 8:56:15 PM7/8/17
to latexus...@googlegroups.com
That's true, I forgotten I wrote about that. It was mostly to remember next time I needed it.
My link: https://abelsiqueira.github.io/blog/latex-tools-for-revision/

Here's the gitlab link for the tool: (better than the ctan link)
https://gitlab.com/latexpand/latexpand

The CTAN page says it's on TeX Live and MikTex, so you can probably install by one of those
and use latexpand as a .exe.

File extension don't mean much. On Linux, scripts that are meant to be used as command line
softwares, are usually delivered without extension. If you install by TeX Live on Linux, you
probably have latexpand ready to use (as I do).

Otherwise, for Linux (and probably OSX), you can download the latexpand file, enter

chmod a+x latexpand

and run it as

./latexpand MAIN.tex

Best,

Abel Soares Siqueira
Assistant Professor at the Federal University of Paraná
Optimization Group - http://opt.ufpr.br

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgroup+unsubscribe@googlegroups.com.
To post to this group, send email to latexusersgroup@googlegroups.com.

Peter Flynn

unread,
Jul 9, 2017, 5:24:01 AM7/9/17
to latexusersgroup
On Sun, Jul 9, 2017 at 1:15 AM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

For instance I have text like

\begin{document}

\include{a1}

\include{a2}

\end{document}


OK. That is case 1a as I described it.

So I do not create few pdf files from one, but join different tex files into one. The problem that journal where I want to sent paper requires not few tex file, but single one.


Just do what I said: copy and paste the content from the separate files a1, a2, ... into a new main file.

At this time I wrote small text on visual basic.


Good grief.
 

The only that I need to add is properly handle \if \fi. 


I don't understand where that is. In the driver file or in the separate a1, a2,... files?
 

I usually do it like you wrote: copy and paste. But it takes a time


Ah. Now we come to the REAL reason. You're using an editor with no document management facilities.
 

and if I want to change something, I need to repeat this procedure or make search in too large file.


So let me understand this. You want to continue maintaining the document as separate files because search is slow in a big file; but you need to be able to concatenate the files to deliver them to your publisher?

OK, so this is not a LaTeX problem, it's a document management problem. I think the fastest way is to use the DOS COPY command. 
  1. Create new file header.tex containing your \documentclass and all your Preamble.
  2. Create new file footer.tex containing your \bibliography and \printindex etc and \end{document}
  3. Open a Command window and use the CD command to go to the folder where you keep the files
  4. Type copy header.tex+a1.tex+a2.tex+a3.tex+footer.tex newfile.tex
(adding in all the files you have, in order; if they are named consistently, you could use a*.tex for example). Now you have a newfile.tex with everything in it. To automate this, put the CD and COPY commands into a file called makedoc.bat that you can execute as a script any time you want to create a new composite file. 

///Peter
 
Reply all
Reply to author
Forward
0 new messages