ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Error with \prevdepth
@ 2015-01-25 21:12 Kip Warner
  2015-01-26  9:09 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Kip Warner @ 2015-01-25 21:12 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 572 bytes --]

Hey list,

I am having difficulty typesetting my book using ConTeXt version
2015.01.10 00:44. It bails on line 32...

        <https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Handbook.tex>

...with the following error:

        tex error       > error on line 32 in file
        Handbook/Handbook.tex: ! You can't use `\prevdepth' in
        restricted horizontal mode

Any help appreciated.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-25 21:12 Error with \prevdepth Kip Warner
@ 2015-01-26  9:09 ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2015-01-26  9:09 UTC (permalink / raw)
  To: ntg-context

On 1/25/2015 10:12 PM, Kip Warner wrote:
> Hey list,
>
> I am having difficulty typesetting my book using ConTeXt version
> 2015.01.10 00:44. It bails on line 32...
>
>          <https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Handbook.tex>
>
> ....with the following error:
>
>          tex error       > error on line 32 in file
>          Handbook/Handbook.tex: ! You can't use `\prevdepth' in
>          restricted horizontal mode
>
> Any help appreciated.

remeve the placefigure in that line, so :

\midaligned
   {\externalfigure
      [Makeup/Images/Cartesian_Theatre.svg]
      [width=0.25\textwidth]}

a midaligned is a hbox while a placefigure operates in the mvl

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-27  8:48           ` Hans Hagen
@ 2015-01-27 18:19             ` Kip Warner
  0 siblings, 0 replies; 9+ messages in thread
From: Kip Warner @ 2015-01-27 18:19 UTC (permalink / raw)
  To: Hans Hagen; +Cc: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 471 bytes --]

On Tue, 2015-01-27 at 09:48 +0100, Hans Hagen wrote:
> not sure what that means but the main thing you need to keep in mind
> as 
> user is:
> 
> - mtxrun --generate : when the tree changes
> - mtxrun --script font --reload : when fonts were moved / added /
> removed
> 
> (if the cache is wiped all happens automatically anyway)

Thanks Hans.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-26 23:50         ` Kip Warner
@ 2015-01-27  8:48           ` Hans Hagen
  2015-01-27 18:19             ` Kip Warner
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2015-01-27  8:48 UTC (permalink / raw)
  To: Kip Warner; +Cc: ntg-context

On 1/27/2015 12:50 AM, Kip Warner wrote:
> On Tue, 2015-01-27 at 00:45 +0100, Hans Hagen wrote:
>> maybe test that in a small test file
>
> It seems to work if I run the following first:
>
>          $ mtxrun --script fonts --reload

normally it is automatically detected if a font is updated or when a 
font is not found; only when one changes fonts (locations) it is needed 
to rebuild the database using --reload (--force for a full reload); 
context itself will do a fast update when needed

>          $ luatools --generate

luatools is already gone for a while, use

mtxrun --generate or
context --generate

>          $ mtxrun --script fonts --list --all --pattern=*

not needed

>          $ context --reload

unknown

> I wish ConTeXt was properly Debianized so all of this was automagically
> taken care of during postinst hook.

not sure what that means but the main thing you need to keep in mind as 
user is:

- mtxrun --generate : when the tree changes
- mtxrun --script font --reload : when fonts were moved / added / removed

(if the cache is wiped all happens automatically anyway)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-26 23:45       ` Hans Hagen
@ 2015-01-26 23:50         ` Kip Warner
  2015-01-27  8:48           ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Kip Warner @ 2015-01-26 23:50 UTC (permalink / raw)
  To: Hans Hagen; +Cc: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 532 bytes --]

On Tue, 2015-01-27 at 00:45 +0100, Hans Hagen wrote:
> maybe test that in a small test file

It seems to work if I run the following first:

        $ mtxrun --script fonts --reload
        $ luatools --generate
        $ mtxrun --script fonts --list --all --pattern=*
        $ context --reload

I wish ConTeXt was properly Debianized so all of this was automagically
taken care of during postinst hook.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-26 23:37     ` Kip Warner
@ 2015-01-26 23:45       ` Hans Hagen
  2015-01-26 23:50         ` Kip Warner
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2015-01-26 23:45 UTC (permalink / raw)
  To: Kip Warner; +Cc: ntg-context

On 1/27/2015 12:37 AM, Kip Warner wrote:
> On Tue, 2015-01-27 at 00:19 +0100, Hans Hagen wrote:
>> there is no reason a font should not be found
>
> My context/tex/setuptex shell script contains the following:
>
>          export OSFONTDIR="$HOME/.fonts:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/opt/libreoffice/basis3.3/share/fonts/"
>
> $ dpkg -L ttf-ubuntu-font-family
> /.
> /usr
> /usr/share
> /usr/share/fonts
> /usr/share/fonts/truetype
> /usr/share/fonts/truetype/ubuntu-font-family
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-LI.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-BI.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-B.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-RI.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-MI.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-RI.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-C.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-M.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf
> /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-BI.ttf
>
> If I look inside the PDF properties, I can see that the Ubuntu typeface
> is embedded, but it looks like it's just not being used anymore.

maybe test that in a small test file



-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-26 23:19   ` Hans Hagen
@ 2015-01-26 23:37     ` Kip Warner
  2015-01-26 23:45       ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Kip Warner @ 2015-01-26 23:37 UTC (permalink / raw)
  To: Hans Hagen; +Cc: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1494 bytes --]

On Tue, 2015-01-27 at 00:19 +0100, Hans Hagen wrote:
> there is no reason a font should not be found

My context/tex/setuptex shell script contains the following:

        export OSFONTDIR="$HOME/.fonts:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/opt/libreoffice/basis3.3/share/fonts/"

$ dpkg -L ttf-ubuntu-font-family 
/.
/usr
/usr/share
/usr/share/fonts
/usr/share/fonts/truetype
/usr/share/fonts/truetype/ubuntu-font-family
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-LI.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-BI.ttf
/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-B.ttf
/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-RI.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-MI.ttf
/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-RI.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-C.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-M.ttf
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf
/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-BI.ttf

If I look inside the PDF properties, I can see that the Ubuntu typeface
is embedded, but it looks like it's just not being used anymore.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
  2015-01-26 18:26 ` Kip Warner
@ 2015-01-26 23:19   ` Hans Hagen
  2015-01-26 23:37     ` Kip Warner
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2015-01-26 23:19 UTC (permalink / raw)
  To: Kip Warner, ntg-context

On 1/26/2015 7:26 PM, Kip Warner wrote:
> On Mon, 2015-01-26 at 11:07 +0100, Hans Hagen <pragma@wxs.nl> wrote:
>> remeve the placefigure in that line, so :
>>
>> \midaligned
>>     {\externalfigure
>>        [Makeup/Images/Cartesian_Theatre.svg]
>>        [width=0.25\textwidth]}
>>
>> a midaligned is a hbox while a placefigure operates in the mvl
>
> Thanks Hans. ConTeXt gets past that, but raises font errors:
>
>          simplefonts     > font ''ubuntu'' not found
>
> I have the Ubuntu typeface installed on my system and nothing has
> changed, except this version of ConTeXt is newer. In my environment file
> I have...
>
>          % Font to use for main text...
>          \setmainfont[Ubuntu]
>          \setupbodyfont[11pt]
>

there is no reason a font should not be found
-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Error with \prevdepth
       [not found] <mailman.266.1422266860.2429.ntg-context@ntg.nl>
@ 2015-01-26 18:26 ` Kip Warner
  2015-01-26 23:19   ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Kip Warner @ 2015-01-26 18:26 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen


[-- Attachment #1.1: Type: text/plain, Size: 797 bytes --]

On Mon, 2015-01-26 at 11:07 +0100, Hans Hagen <pragma@wxs.nl> wrote:
> remeve the placefigure in that line, so :
> 
> \midaligned
>    {\externalfigure
>       [Makeup/Images/Cartesian_Theatre.svg]
>       [width=0.25\textwidth]}
> 
> a midaligned is a hbox while a placefigure operates in the mvl

Thanks Hans. ConTeXt gets past that, but raises font errors:

        simplefonts     > font ''ubuntu'' not found

I have the Ubuntu typeface installed on my system and nothing has
changed, except this version of ConTeXt is newer. In my environment file
I have...

        % Font to use for main text...
        \setmainfont[Ubuntu]
        \setupbodyfont[11pt]

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-27 18:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 21:12 Error with \prevdepth Kip Warner
2015-01-26  9:09 ` Hans Hagen
     [not found] <mailman.266.1422266860.2429.ntg-context@ntg.nl>
2015-01-26 18:26 ` Kip Warner
2015-01-26 23:19   ` Hans Hagen
2015-01-26 23:37     ` Kip Warner
2015-01-26 23:45       ` Hans Hagen
2015-01-26 23:50         ` Kip Warner
2015-01-27  8:48           ` Hans Hagen
2015-01-27 18:19             ` Kip Warner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).