Re: APA with a Table of Contents: Losing the subparagaph in the ToC

2014-06-27 Thread John Kane
Hi Jacob
Many thanks.   It now is working and it even let's me insert a couple of
new page commands that seem to allow me a separate TOC page.  Fantastic!.

My apologies for the knitr and shortnames modules.  They are part of my
regular template and I tend to forget I even load them until I actually use
them.


On 24 June 2014 17:33, Jacob Bishop bishop.ja...@gmail.com wrote:

 Hi John,

 A couple of things. First, you have included the knitr and
 short-inset-names modules in the document, which as far as I can tell are
 not used for this minimal example. I removed them since I'm not yet set up
 to work with those. This shouldn't cause any problems, but I thought I'd
 mention it in case.

 As a disclaimer, I am not exactly sure what I'm doing, but when I opened
 up the apa.cls file and searched for paragraph and subparagraph, I found:
 \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
 {-1em}%
 {\normalfont\normalsize\bfseries\itshape\addperi}}

 \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
 {-\z@\relax}%

 {\normalfont\normalsize\itshape\hspace{\parindent}{#1}\textit{.}}{\relax}}

 The thing is, with the document you sent, the paragraph part is working,
 but the subparagraph part is not. So, if we use a little trial-and-error to
 put them together, I end up with the following, which seems to work if you
 paste it into your preamble (under Document-Settings-LaTeX Preamble).


 \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%

 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%

 {-1em}%

 {\normalfont\normalsize\itshape\addperi}}


 As a disclaimer, I'm not actually sure what I've done there, and it could
 break something else, but it seems to work for me...maybe somebody who
 understands things better can provide more insight. I hope this helps.

 Jacob




-- 
John Kane
Kingston ON Canada


Re: Unsupported math environments

2014-06-27 Thread Rudi Gaelzer
Dear Jacob.
Thanks for the reply.
However, I think that the solution suggested by Guy Rutenberg will only work 
for math COMMANDS.  See the attached file, where I define a math macro \pFq in 
order to write the symbol for generalized hypergeometric functions.

What I want and need is a means to implement the math ENVIRONMENTS defined by 
the mathtools package and that are not explicitly supported by LyX.
Specifically for multiline equations.  LyX supports the standard AMS inner and 
outer environments, such as align (outer) and aligned (inner).  However, 
multline is only an outer env in the standard AMSmath.  The mathtools pack 
defines the corresponding inner multlined environment, and it seems that there 
is no way to use it other than ERTing the math input (see attached file).
I guess the same tweak can be applied in order to use the other new 
environments defined by mathtools, such as dcases, rcases, drcases, 
psmallmatrix, bsmallmatrix, etc.

The only other alternative I was able to find was this suggestion by Uwe Stôhr:
http://marc.info/?l=lyx-usersm=117565214529188w=2
which would demand some tweaking with the default spaces of the multline 
environment (see file).

I also tried to create first a tex file with

\[
 \begin{multlined}
  a = \\
  b
 \end{multlined}
\]

and then import it into LyX, but only the first line was used.  So, I guess 
multlined is indeed unsupported.

On Thursday 26 June 2014 21:45:37 you wrote:
 On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer rgael...@gmail.com wrote:
 
  Using LyX 2.1.x, is it now possible to implement via ERT the
  still-unsupported capabilities of the mathtools package, such as the
  multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec.
  3.4.3) environments?
 
 
 I'm not sure I understand the question. What you wrote seems to imply that
 it was not previously possible to use the capabilities of the mathtools
 package via ERT. As far as I know, it has *always* (or maybe just for a
 very long time) been possible to use the capabilities of *any* LaTeX
 package via ERT (as long as it doesn't conflict with another package that
 is in use). For example, here is a post of someone using the mathtools
 package in LyX over two years ago:
 http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/
 . As another example for one of your specific scenarios, here is a post
 from another person using the cases environment from mathtools:
 http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang
 .
 
 Why don't you try it, and if you have trouble, post the specific problem
 here? I hope this helps.
 
 Jacob
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741

pres.lyx
Description: application/lyx


Re: Lualatex at startup

2014-06-27 Thread Denis Navas Vega
At the begining, I have found desirable to run LyX with administrative 
privileges in windows.  That avoid that the operative system, block 
access to some files.  Since LyX will invoke MikTeX after it verifies 
the installed packages, is important that MikTeX is configured to 
automatically install a missing package.


Also, MikTeX configuration has provision to stablish that LuaLaTeX is an 
available format, that has to be authorized after MikTeX installation.






Re: APA with a Table of Contents: Losing the subparagaph in the ToC

2014-06-27 Thread John Kane
Hi Jacob
Many thanks.   It now is working and it even let's me insert a couple of
new page commands that seem to allow me a separate TOC page.  Fantastic!.

My apologies for the knitr and shortnames modules.  They are part of my
regular template and I tend to forget I even load them until I actually use
them.


On 24 June 2014 17:33, Jacob Bishop bishop.ja...@gmail.com wrote:

 Hi John,

 A couple of things. First, you have included the knitr and
 short-inset-names modules in the document, which as far as I can tell are
 not used for this minimal example. I removed them since I'm not yet set up
 to work with those. This shouldn't cause any problems, but I thought I'd
 mention it in case.

 As a disclaimer, I am not exactly sure what I'm doing, but when I opened
 up the apa.cls file and searched for paragraph and subparagraph, I found:
 \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
 {-1em}%
 {\normalfont\normalsize\bfseries\itshape\addperi}}

 \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
 {-\z@\relax}%

 {\normalfont\normalsize\itshape\hspace{\parindent}{#1}\textit{.}}{\relax}}

 The thing is, with the document you sent, the paragraph part is working,
 but the subparagraph part is not. So, if we use a little trial-and-error to
 put them together, I end up with the following, which seems to work if you
 paste it into your preamble (under Document-Settings-LaTeX Preamble).


 \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%

 {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%

 {-1em}%

 {\normalfont\normalsize\itshape\addperi}}


 As a disclaimer, I'm not actually sure what I've done there, and it could
 break something else, but it seems to work for me...maybe somebody who
 understands things better can provide more insight. I hope this helps.

 Jacob




-- 
John Kane
Kingston ON Canada


Re: Unsupported math environments

2014-06-27 Thread Rudi Gaelzer
Dear Jacob.
Thanks for the reply.
However, I think that the solution suggested by Guy Rutenberg will only work 
for math COMMANDS.  See the attached file, where I define a math macro \pFq in 
order to write the symbol for generalized hypergeometric functions.

What I want and need is a means to implement the math ENVIRONMENTS defined by 
the mathtools package and that are not explicitly supported by LyX.
Specifically for multiline equations.  LyX supports the standard AMS inner and 
outer environments, such as align (outer) and aligned (inner).  However, 
multline is only an outer env in the standard AMSmath.  The mathtools pack 
defines the corresponding inner multlined environment, and it seems that there 
is no way to use it other than ERTing the math input (see attached file).
I guess the same tweak can be applied in order to use the other new 
environments defined by mathtools, such as dcases, rcases, drcases, 
psmallmatrix, bsmallmatrix, etc.

The only other alternative I was able to find was this suggestion by Uwe Stôhr:
http://marc.info/?l=lyx-usersm=117565214529188w=2
which would demand some tweaking with the default spaces of the multline 
environment (see file).

I also tried to create first a tex file with

\[
 \begin{multlined}
  a = \\
  b
 \end{multlined}
\]

and then import it into LyX, but only the first line was used.  So, I guess 
multlined is indeed unsupported.

On Thursday 26 June 2014 21:45:37 you wrote:
 On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer rgael...@gmail.com wrote:
 
  Using LyX 2.1.x, is it now possible to implement via ERT the
  still-unsupported capabilities of the mathtools package, such as the
  multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec.
  3.4.3) environments?
 
 
 I'm not sure I understand the question. What you wrote seems to imply that
 it was not previously possible to use the capabilities of the mathtools
 package via ERT. As far as I know, it has *always* (or maybe just for a
 very long time) been possible to use the capabilities of *any* LaTeX
 package via ERT (as long as it doesn't conflict with another package that
 is in use). For example, here is a post of someone using the mathtools
 package in LyX over two years ago:
 http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/
 . As another example for one of your specific scenarios, here is a post
 from another person using the cases environment from mathtools:
 http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang
 .
 
 Why don't you try it, and if you have trouble, post the specific problem
 here? I hope this helps.
 
 Jacob
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741

pres.lyx
Description: application/lyx


Re: Lualatex at startup

2014-06-27 Thread Denis Navas Vega
At the begining, I have found desirable to run LyX with administrative 
privileges in windows.  That avoid that the operative system, block 
access to some files.  Since LyX will invoke MikTeX after it verifies 
the installed packages, is important that MikTeX is configured to 
automatically install a missing package.


Also, MikTeX configuration has provision to stablish that LuaLaTeX is an 
available format, that has to be authorized after MikTeX installation.






Re: APA with a Table of Contents: Losing the subparagaph in the ToC

2014-06-27 Thread John Kane
Hi Jacob
Many thanks.   It now is working and it even let's me insert a couple of
new page commands that seem to allow me a separate TOC page.  Fantastic!.

My apologies for the knitr and shortnames modules.  They are part of my
regular template and I tend to forget I even load them until I actually use
them.


On 24 June 2014 17:33, Jacob Bishop  wrote:

> Hi John,
>
> A couple of things. First, you have included the knitr and
> short-inset-names modules in the document, which as far as I can tell are
> not used for this minimal example. I removed them since I'm not yet set up
> to work with those. This shouldn't cause any problems, but I thought I'd
> mention it in case.
>
> As a disclaimer, I am not exactly sure what I'm doing, but when I opened
> up the apa.cls file and searched for paragraph and subparagraph, I found:
> \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
> {-1em}%
> {\normalfont\normalsize\bfseries\itshape\addperi}}
>
> \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
> {-\z@\relax}%
>
> {\normalfont\normalsize\itshape\hspace{\parindent}{#1}\textit{.}}{\relax}}
>
> The thing is, with the document you sent, the paragraph part is working,
> but the subparagraph part is not. So, if we use a little trial-and-error to
> put them together, I end up with the following, which seems to work if you
> paste it into your preamble (under Document->Settings->LaTeX Preamble).
>
>
> \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
>
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
>
> {-1em}%
>
> {\normalfont\normalsize\itshape\addperi}}
>
>
> As a disclaimer, I'm not actually sure what I've done there, and it could
> break something else, but it seems to work for me...maybe somebody who
> understands things better can provide more insight. I hope this helps.
>
> Jacob
>



-- 
John Kane
Kingston ON Canada


Re: Unsupported math environments

2014-06-27 Thread Rudi Gaelzer
Dear Jacob.
Thanks for the reply.
However, I think that the solution suggested by Guy Rutenberg will only work 
for math COMMANDS.  See the attached file, where I define a math macro \pFq in 
order to write the symbol for generalized hypergeometric functions.

What I want and need is a means to implement the math ENVIRONMENTS defined by 
the mathtools package and that are not explicitly supported by LyX.
Specifically for multiline equations.  LyX supports the standard AMS inner and 
outer environments, such as align (outer) and aligned (inner).  However, 
multline is only an outer env in the standard AMSmath.  The mathtools pack 
defines the corresponding inner multlined environment, and it seems that there 
is no way to use it other than ERTing the math input (see attached file).
I guess the same tweak can be applied in order to use the other new 
environments defined by mathtools, such as dcases, rcases, drcases, 
psmallmatrix, bsmallmatrix, etc.

The only other alternative I was able to find was this suggestion by Uwe Stôhr:
http://marc.info/?l=lyx-users=117565214529188=2
which would demand some tweaking with the default spaces of the multline 
environment (see file).

I also tried to create first a tex file with

\[
 \begin{multlined}
  a = \\
  b
 \end{multlined}
\]

and then import it into LyX, but only the first line was used.  So, I guess 
multlined is indeed unsupported.

On Thursday 26 June 2014 21:45:37 you wrote:
> On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer  wrote:
> 
> > Using LyX 2.1.x, is it now possible to implement via ERT the
> > still-unsupported capabilities of the mathtools package, such as the
> > multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec.
> > 3.4.3) environments?
> >
> 
> I'm not sure I understand the question. What you wrote seems to imply that
> it was not previously possible to use the capabilities of the mathtools
> package via ERT. As far as I know, it has *always* (or maybe just for a
> very long time) been possible to use the capabilities of *any* LaTeX
> package via ERT (as long as it doesn't conflict with another package that
> is in use). For example, here is a post of someone using the mathtools
> package in LyX over two years ago:
> http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/
> . As another example for one of your specific scenarios, here is a post
> from another person using the cases environment from mathtools:
> http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang
> .
> 
> Why don't you try it, and if you have trouble, post the specific problem
> here? I hope this helps.
> 
> Jacob
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741

pres.lyx
Description: application/lyx


Re: Lualatex at startup

2014-06-27 Thread Denis Navas Vega
At the begining, I have found desirable to run LyX with administrative 
privileges in windows.  That avoid that the operative system, block 
access to some files.  Since LyX will invoke MikTeX after it verifies 
the installed packages, is important that MikTeX is configured to 
automatically install a missing package.


Also, MikTeX configuration has provision to stablish that LuaLaTeX is an 
available format, that has to be authorized after MikTeX installation.