ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* missing pagebreak using vim-module for typing
@ 2012-05-01  6:02 Xenia
  2012-05-01  6:50 ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Xenia @ 2012-05-01  6:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear context folks,

since Aditya recommended I am using the vim module for including
MATLAB-files in my TeX-files. But for longer code snippets there is no
pagebreak, so that the code is cuttet at the end of the page. What do I
have to do?

current version: 2012.04.19 23:18

Thanks,
Xenia
___________________________________________________________________________________
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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01  6:02 missing pagebreak using vim-module for typing Xenia
@ 2012-05-01  6:50 ` Aditya Mahajan
  2012-05-01 10:24   ` Xenia
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-01  6:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 413 bytes --]

On Tue, 1 May 2012, Xenia wrote:

> Dear context folks,
>
> since Aditya recommended I am using the vim module for including
> MATLAB-files in my TeX-files. But for longer code snippets there is no
> pagebreak, so that the code is cuttet at the end of the page. What do I
> have to do?
>
> current version: 2012.04.19 23:18

Can you post a minimal example? The attached simple test gives me page 
breaks.

Aditya

[-- Attachment #2: Type: APPLICATION/x-tex, Size: 444 bytes --]

[-- Attachment #3: 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01  6:50 ` Aditya Mahajan
@ 2012-05-01 10:24   ` Xenia
  2012-05-01 11:02     ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Xenia @ 2012-05-01 10:24 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

On 01.05.2012 08:50, Aditya Mahajan wrote:
> On Tue, 1 May 2012, Xenia wrote:
> 
>> Dear context folks,
>>
>> since Aditya recommended I am using the vim module for including
>> MATLAB-files in my TeX-files. But for longer code snippets there is no
>> pagebreak, so that the code is cuttet at the end of the page. What do I
>> have to do?
>>
>> current version: 2012.04.19 23:18
> 
> Can you post a minimal example? The attached simple test gives me page
> breaks.

The reason seems so be the frame, that I prefer. I am attaching the files.

Thanks,

Xenia

[-- Attachment #2: code.log --]
[-- Type: text/x-log, Size: 15854 bytes --]

(code.tex

ConTeXt  ver: 2012.04.19 23:18 MKIV  fmt: 2012.4.22  int: english/english

system          > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > code.top loaded

system          > options > start used options

used options    > % runtime options files (command line driven)
used options    > \unprotect
used options    > % feedback and basic job control
used options    > % handy for special styles
used options    > \startluacode
used options    > document = document or { }
used options    > document.arguments={
used options    > }
used options    > document.files={
used options    >  "code",
used options    > }
used options    > \stopluacode
used options    > % process info
used options    > \setupsystem[inputfile=code]
used options    > \setupsystem[\c!n=2,\c!m=2]
used options    > % modes
used options    > % options (not that important)
used options    > \startsetups *runtime:options
used options    > \stopsetups
used options    > % styles and modules
used options    > \startsetups *runtime:modules
used options    > \stopsetups
used options    > % done
used options    > \protect \endinput

system          > options > stop used options

(code.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'vim'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading         > Vim syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'filter'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2012.04.18)
resolvers       > modules > loaded: 'module-catcodes'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
resolvers       > modules > loaded: 'syntax-highlight'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading         > Code syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'syntax-groups'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading         > Syntax highlighting groups (ver: 2012.01.03)
resolvers       > modules > already loaded: 'module-catcodes'
)
resolvers       > modules > already loaded: 'filter'
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown: library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
(code-temp-MATLAB-0.vimout)
backend         > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
 )</home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf></home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

system          > files > start used files

used files      >    1: filename=code | filetype=tex | foundname=code.tex | usedmethod=filesystem
used files      >    2: filename=cont-new.mkiv | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files      >    3: filename=code.top | foundname=code.top | usedmethod=direct
used files      >    4: filename=lang-us.lua | filetype=lua | foundname=/home/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files      >    5: filename=t-vim.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    6: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=direct
used files      >    7: filename=t-filter.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >    8: filename=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | foundname=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=direct
used files      >    9: filename=t-module-catcodes.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   10: filename=../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=direct
used files      >   11: filename=t-syntax-highlight.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   12: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=direct
used files      >   13: filename=t-syntax-groups.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   14: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=direct
used files      >   15: filename=mkiv-base.map | filetype=map | format=map | foundname=/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files      >   16: filename=lm.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files      >   17: filename=lm-math.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files      >   18: filename=lm-math.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files      >   19: filename=lm-rm.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files      >   20: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   21: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files      >   22: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files      >   23: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files      >   24: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files      >   25: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files      >   26: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files      >   27: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files      >   28: filename=stmary10.afm | filetype=afm | format=afm | foundname=/home/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files      >   29: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/home/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files      >   30: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files      >   31: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files      >   32: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files      >   33: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files      >   34: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files      >   35: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files      >   36: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files      >   37: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files      >   38: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files      >   39: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files      >   40: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files      >   41: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files      >   42: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files      >   43: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files      >   44: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files      >   45: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files      >   46: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files      >   47: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files      >   48: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   49: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files      >   50: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files      >   51: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files      >   52: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files      >   53: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files      >   54: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   55: filename=code-temp-MATLAB-0.vimout | foundname=code-temp-MATLAB-0.vimout | usedmethod=direct
used files      >   56: filename=lmmono12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   57: filename=lpdf-pdx.xml | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: code

system          > structure > stop used structure


mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats  > used cache path           - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats  > used cache path           - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats  > resource resolver         - loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 57 found files, scanned paths: 
mkiv lua stats  > stored bytecode data      - 303 modules, 65 tables, 368 chunks
mkiv lua stats  > cleaned up reserved nodes - 39 nodes, 9 lists of 436
mkiv lua stats  > node memory usage         - 5 glue, 3 penalty, 20 attribute, 30 glue_spec, 6 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 534 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules        - 5 requested, 5 found (*-filter *-module-catcodes *-syntax-groups *-syntax-highlight *-vim), 0 missing
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > jobdata time              - 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks                 - 740 direct, 2036 indirect, 2776 total
mkiv lua stats  > randomizer                - resumed with value 0.86200729983952
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file      - code.pdf
mkiv lua stats  > loaded fonts              - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.298 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 34114 of 65536 + 100000
mkiv lua stats  > current memory usage      - 45 MB (ctx: 46 MB)
mkiv lua stats  > runtime                   - 0.893 seconds, 1 processed pages, 1 shipped pages, 1.120 pages/second


[-- Attachment #3: code.pdf --]
[-- Type: application/x-pdf, Size: 7119 bytes --]

[-- Attachment #4: code.tex --]
[-- Type: application/x-tex, Size: 866 bytes --]

[-- Attachment #5: 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 10:24   ` Xenia
@ 2012-05-01 11:02     ` Wolfgang Schuster
  2012-05-01 16:14       ` Xenia
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2012-05-01 11:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.05.2012 um 12:24 schrieb Xenia:

> On 01.05.2012 08:50, Aditya Mahajan wrote:
>> On Tue, 1 May 2012, Xenia wrote:
>> 
>>> Dear context folks,
>>> 
>>> since Aditya recommended I am using the vim module for including
>>> MATLAB-files in my TeX-files. But for longer code snippets there is no
>>> pagebreak, so that the code is cuttet at the end of the page. What do I
>>> have to do?
>>> 
>>> current version: 2012.04.19 23:18
>> 
>> Can you post a minimal example? The attached simple test gives me page
>> breaks.
> 
> The reason seems so be the frame, that I prefer. I am attaching the files.

Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.

Wolfgang
___________________________________________________________________________________
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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 11:02     ` Wolfgang Schuster
@ 2012-05-01 16:14       ` Xenia
  2012-05-01 16:53         ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Xenia @ 2012-05-01 16:14 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

On 01.05.2012 13:02, Wolfgang Schuster wrote:
> 
> Am 01.05.2012 um 12:24 schrieb Xenia:
> 
>> On 01.05.2012 08:50, Aditya Mahajan wrote:
>>> On Tue, 1 May 2012, Xenia wrote:
>>>
>>>> Dear context folks,
>>>>
>>>> since Aditya recommended I am using the vim module for including
>>>> MATLAB-files in my TeX-files. But for longer code snippets there is no
>>>> pagebreak, so that the code is cuttet at the end of the page. What do I
>>>> have to do?
>>>>
>>>> current version: 2012.04.19 23:18
>>>
>>> Can you post a minimal example? The attached simple test gives me page
>>> breaks.
>>
>> The reason seems so be the frame, that I prefer. I am attaching the files.
> 
> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.

Thanks, that works, but now the linewrapping does not work correctly
(after the frame) and the line numbering starts in line 2.
I am attaching all files.

Thank you.

Xenia

[-- Attachment #2: linewrap.log --]
[-- Type: text/x-log, Size: 19821 bytes --]

(linewrap.tex

ConTeXt  ver: 2012.04.19 23:18 MKIV  fmt: 2012.4.22  int: english/english

system          > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > linewrap.top loaded

system          > options > start used options

used options    > % runtime options files (command line driven)
used options    > \unprotect
used options    > % feedback and basic job control
used options    > % handy for special styles
used options    > \startluacode
used options    > document = document or { }
used options    > document.arguments={
used options    > }
used options    > document.files={
used options    >  "linewrap",
used options    > }
used options    > \stopluacode
used options    > % process info
used options    > \setupsystem[inputfile=linewrap]
used options    > \setupsystem[\c!n=2,\c!m=2]
used options    > % modes
used options    > % options (not that important)
used options    > \startsetups *runtime:options
used options    > \stopsetups
used options    > % styles and modules
used options    > \startsetups *runtime:modules
used options    > \stopsetups
used options    > % done
used options    > \protect \endinput

system          > options > stop used options

(linewrap.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'vim'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading         > Vim syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'filter'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2012.04.18)
resolvers       > modules > loaded: 'module-catcodes'
(../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
resolvers       > modules > loaded: 'syntax-highlight'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading         > Code syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'syntax-groups'
(../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading         > Syntax highlighting groups (ver: 2012.01.03)
resolvers       > modules > already loaded: 'module-catcodes'
)
resolvers       > modules > already loaded: 'filter'
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown: library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
(linewrap-temp-MATLAB-0.vimout
Overfull \hbox (5.81206pt too wide) in paragraph at lines 2--2
[][][]\3>modern-designsize-12pt-tt-tf-0--0 ran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-dom tex-tran-

\hbox(7.332+0.072)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\latelua0"_plib_.enhance("p:2")"
.\3>modern-designsize-12pt-tt-tf-0--0 r
.\3>modern-designsize-12pt-tt-tf-0--0 a
.etc.

) (linewrap-temp-MATLAB-1.vimout
Overfull \hbox (24.35204pt too wide) in paragraph at lines 14--1
[][][][]\3>modern-designsize-12pt-tt-tf-0--0 fprintf('ran-dom text ran-dom text ran-dom text ran-dom text ran-dom text ran-

\hbox(10.42677+4.05482)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\latelua0"_plib_.enhance("p:4")"
.\hbox(10.42677+4.05482)x0.0, direction TLT
..\latelua0"_plib_.enhance("b:tbg:2")"
..\hbox(10.42677+4.05482)x0.0, direction TLT
..\glue 0.0 plus 1.0fil minus 1.0fil
.\3>modern-designsize-12pt-tt-tf-0--0 f
.etc.

)
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun': /home/context/tex/texmf-context/metapost/context/base/metafun.mpiv
backend         > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
 )</home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf></home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

system          > files > start used files

used files      >    1: filename=linewrap | filetype=tex | foundname=linewrap.tex | usedmethod=filesystem
used files      >    2: filename=cont-new.mkiv | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files      >    3: filename=linewrap.top | foundname=linewrap.top | usedmethod=direct
used files      >    4: filename=lang-us.lua | filetype=lua | foundname=/home/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files      >    5: filename=t-vim.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    6: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=direct
used files      >    7: filename=t-filter.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >    8: filename=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | foundname=../../home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=direct
used files      >    9: filename=t-module-catcodes.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   10: filename=../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=direct
used files      >   11: filename=t-syntax-highlight.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   12: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=direct
used files      >   13: filename=t-syntax-groups.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   14: filename=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | foundname=../../home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=direct
used files      >   15: filename=mkiv-base.map | filetype=map | format=map | foundname=/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files      >   16: filename=lm.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files      >   17: filename=lm-math.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files      >   18: filename=lm-math.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files      >   19: filename=lm-rm.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files      >   20: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   21: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files      >   22: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files      >   23: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files      >   24: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files      >   25: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files      >   26: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files      >   27: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files      >   28: filename=stmary10.afm | filetype=afm | format=afm | foundname=/home/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files      >   29: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/home/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files      >   30: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files      >   31: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files      >   32: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files      >   33: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files      >   34: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files      >   35: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files      >   36: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files      >   37: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files      >   38: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files      >   39: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files      >   40: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files      >   41: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files      >   42: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files      >   43: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files      >   44: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files      >   45: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files      >   46: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files      >   47: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files      >   48: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   49: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files      >   50: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files      >   51: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files      >   52: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files      >   53: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files      >   54: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   55: filename=linewrap-temp-MATLAB-0.vimout | foundname=linewrap-temp-MATLAB-0.vimout | usedmethod=direct
used files      >   56: filename=lmmono12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   57: filename=linewrap-temp-MATLAB-1.vimout | foundname=linewrap-temp-MATLAB-1.vimout | usedmethod=direct
used files      >   58: filename=metafun.mpiv | filetype=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/metafun.mpiv | usedmethod=database
used files      >   59: filename=mp-base.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-base.mpiv | usedmethod=database
used files      >   60: filename=mp-tool.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-tool.mpiv | usedmethod=database
used files      >   61: filename=mp-mlib.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-mlib.mpiv | usedmethod=database
used files      >   62: filename=mp-page.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-page.mpiv | usedmethod=database
used files      >   63: filename=mp-butt.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-butt.mpiv | usedmethod=database
used files      >   64: filename=mp-shap.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-shap.mpiv | usedmethod=database
used files      >   65: filename=mp-grph.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-grph.mpiv | usedmethod=database
used files      >   66: filename=mp-grid.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-grid.mpiv | usedmethod=database
used files      >   67: filename=mp-form.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-form.mpiv | usedmethod=database
used files      >   68: filename=mp-figs.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-figs.mpiv | usedmethod=database
used files      >   69: filename=mp-func.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-func.mpiv | usedmethod=database
used files      >   70: filename=mp-abck.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-abck.mpiv | usedmethod=database
used files      >   71: filename=lpdf-pdx.xml | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: linewrap

system          > structure > stop used structure


mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats  > used cache path           - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats  > used cache path           - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats  > resource resolver         - loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 71 found files, scanned paths: 
mkiv lua stats  > stored bytecode data      - 303 modules, 65 tables, 368 chunks
mkiv lua stats  > cleaned up reserved nodes - 42 nodes, 10 lists of 436
mkiv lua stats  > node memory usage         - 2 glue, 2 penalty, 9 attribute, 26 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 421 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules        - 5 requested, 5 found (*-filter *-module-catcodes *-syntax-groups *-syntax-highlight *-vim), 0 missing
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > jobdata time              - 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks                 - 677 direct, 1935 indirect, 2612 total
mkiv lua stats  > randomizer                - resumed with value 0.99531583022108
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > positions                 - 10 collected, 2 regulars, 8 regions, 0 unresolved regions
mkiv lua stats  > result saved in file      - linewrap.pdf
mkiv lua stats  > loaded fonts              - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.308 seconds 
mkiv lua stats  > metapost processing time  - 0.003 seconds, loading: 0.027 seconds, execution: 0.003 seconds, n: 2
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 34147 of 65536 + 100000
mkiv lua stats  > current memory usage      - 45 MB (ctx: 46 MB)
mkiv lua stats  > runtime                   - 0.944 seconds, 1 processed pages, 1 shipped pages, 1.059 pages/second


[-- Attachment #3: linewrap.pdf --]
[-- Type: application/x-pdf, Size: 8360 bytes --]

[-- Attachment #4: linewrap.tex --]
[-- Type: application/x-tex, Size: 547 bytes --]

[-- Attachment #5: 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 16:14       ` Xenia
@ 2012-05-01 16:53         ` Aditya Mahajan
  2012-05-01 17:35           ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-01 16:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 506 bytes --]

On Tue, 1 May 2012, Xenia wrote:

>> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.
>
> Thanks, that works, but now the linewrapping does not work correctly
> (after the frame)

The bad linebreaks also happen if you remove the background. I'll look 
into it (in any case, hypenation should be disabled, so there is a bug 
somewhere).

> and the line numbering starts in line 2.
> I am attaching all files.

Add location=paragraph to definebackground.

Aditya

[-- 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 16:53         ` Aditya Mahajan
@ 2012-05-01 17:35           ` Aditya Mahajan
  2012-05-01 18:29             ` Hans Hagen
                               ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-01 17:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 746 bytes --]

On Tue, 1 May 2012, Aditya Mahajan wrote:

> On Tue, 1 May 2012, Xenia wrote:
>
>>> Use \definetextbackground for the frame, framedtext’s are unbreakable 
>>> boxes.
>> 
>> Thanks, that works, but now the linewrapping does not work correctly
>> (after the frame)
>
> The bad linebreaks also happen if you remove the background. I'll look into 
> it (in any case, hypenation should be disabled, so there is a bug somewhere).

Add:

\startsetups linebreak
   \language\minusone %disable hypenation
   \raggedright       %avoid overflow lines 
\stopsetups

\unprotect
\setupsyntaxhighlighting
   [setups={syntaxhighlighting@setup,linebreak}]
\protect

I'll add these to the main module and release a new version.

Aditya

[-- 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 17:35           ` Aditya Mahajan
@ 2012-05-01 18:29             ` Hans Hagen
  2012-05-01 18:46               ` Aditya Mahajan
  2012-05-01 18:46             ` Wolfgang Schuster
  2012-05-06 18:30             ` Xenia
  2 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2012-05-01 18:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1-5-2012 19:35, Aditya Mahajan wrote:

> \startsetups linebreak
> \language\minusone %disable hypenation
> \raggedright %avoid overflow lines \stopsetups
>
> \unprotect
> \setupsyntaxhighlighting
> [setups={syntaxhighlighting@setup,linebreak}]
> \protect
>
> I'll add these to the main module and release a new version.

best use a (public) namespace :

\startsetups vim:linebreak

or so

-----------------------------------------------------------------
                                           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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 18:29             ` Hans Hagen
@ 2012-05-01 18:46               ` Aditya Mahajan
  0 siblings, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-01 18:46 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Tue, 1 May 2012, Hans Hagen wrote:

> On 1-5-2012 19:35, Aditya Mahajan wrote:
>
>> \startsetups linebreak
>> \language\minusone %disable hypenation
>> \raggedright %avoid overflow lines \stopsetups
>> 
>> \unprotect
>> \setupsyntaxhighlighting
>> [setups={syntaxhighlighting@setup,linebreak}]
>> \protect
>> 
>> I'll add these to the main module and release a new version.
>
> best use a (public) namespace :
>
> \startsetups vim:linebreak

That was just to indicate a quick fix at the user-level.

In the new version of the module, no manual correction in needed.

Aditya
___________________________________________________________________________________
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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 17:35           ` Aditya Mahajan
  2012-05-01 18:29             ` Hans Hagen
@ 2012-05-01 18:46             ` Wolfgang Schuster
  2012-05-01 18:49               ` Aditya Mahajan
  2012-05-06 18:30             ` Xenia
  2 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2012-05-01 18:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.05.2012 um 19:35 schrieb Aditya Mahajan:

> On Tue, 1 May 2012, Aditya Mahajan wrote:
> 
>> On Tue, 1 May 2012, Xenia wrote:
>> 
>>>> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.
>>> Thanks, that works, but now the linewrapping does not work correctly
>>> (after the frame)
>> 
>> The bad linebreaks also happen if you remove the background. I'll look into it (in any case, hypenation should be disabled, so there is a bug somewhere).
> 
> Add:
> 
> \startsetups linebreak
>  \language\minusone %disable hypenation
>  \raggedright       %avoid overflow lines \stopsetups
> 
> \unprotect
> \setupsyntaxhighlighting
>  [setups={syntaxhighlighting@setup,linebreak}]
> \protect
> 
> I'll add these to the main module and release a new version.

Why don’t you add a align key and use “align={flushleft,nothyphenated}” as default.

Wolfgang
___________________________________________________________________________________
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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 18:46             ` Wolfgang Schuster
@ 2012-05-01 18:49               ` Aditya Mahajan
  0 siblings, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-01 18:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1087 bytes --]

On Tue, 1 May 2012, Wolfgang Schuster wrote:
> Am 01.05.2012 um 19:35 schrieb Aditya Mahajan:
>
>> On Tue, 1 May 2012, Aditya Mahajan wrote:
>>
>>> On Tue, 1 May 2012, Xenia wrote:
>>>
>>>>> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes.
>>>> Thanks, that works, but now the linewrapping does not work correctly
>>>> (after the frame)
>>>
>>> The bad linebreaks also happen if you remove the background. I'll look into it (in any case, hypenation should be disabled, so there is a bug somewhere).
>>
>> Add:
>>
>> \startsetups linebreak
>>  \language\minusone %disable hypenation
>>  \raggedright       %avoid overflow lines \stopsetups
>>
>> \unprotect
>> \setupsyntaxhighlighting
>>  [setups={syntaxhighlighting@setup,linebreak}]
>> \protect
>>
>> I'll add these to the main module and release a new version.
>
> Why don’t you add a align key and use “align={flushleft,nothyphenated}” as default.

Good idea! I'll add align key to the filter module and set it to 
`flushleft,nothyphenated` in the vim moule.

Thanks,
Aditya

[-- 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-01 17:35           ` Aditya Mahajan
  2012-05-01 18:29             ` Hans Hagen
  2012-05-01 18:46             ` Wolfgang Schuster
@ 2012-05-06 18:30             ` Xenia
  2012-05-06 22:30               ` Aditya Mahajan
  2 siblings, 1 reply; 13+ messages in thread
From: Xenia @ 2012-05-06 18:30 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

On 01.05.2012 19:35, Aditya Mahajan wrote:
> On Tue, 1 May 2012, Aditya Mahajan wrote:
> 
>> On Tue, 1 May 2012, Xenia wrote:
>>
>>>> Use \definetextbackground for the frame, framedtext’s are
>>>> unbreakable boxes.
>>>
>>> Thanks, that works, but now the linewrapping does not work correctly
>>> (after the frame)
>>
>> The bad linebreaks also happen if you remove the background. I'll look
>> into it (in any case, hypenation should be disabled, so there is a bug
>> somewhere).
> 
> Add:
> 
> \startsetups linebreak
>   \language\minusone %disable hypenation
>   \raggedright       %avoid overflow lines \stopsetups
> 
> \unprotect
> \setupsyntaxhighlighting
>   [setups={syntaxhighlighting@setup,linebreak}]
> \protect

I am using your workaround and it works fine for most code-snippets. But
with longer formulas, this fails. I am attaching a minimal example.

[-- Attachment #2: linewrap.log --]
[-- Type: text/x-log, Size: 19908 bytes --]

(linewrap.tex

ConTeXt  ver: 2012.04.19 23:18 MKIV  fmt: 2012.4.22  int: english/english

system          > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > linewrap.top loaded

system          > options > start used options

used options    > % runtime options files (command line driven)
used options    > \unprotect
used options    > % feedback and basic job control
used options    > % handy for special styles
used options    > \startluacode
used options    > document = document or { }
used options    > document.arguments={
used options    > }
used options    > document.files={
used options    >  "linewrap",
used options    > }
used options    > \stopluacode
used options    > % process info
used options    > \setupsystem[inputfile=linewrap]
used options    > \setupsystem[\c!n=2,\c!m=2]
used options    > % modes
used options    > % options (not that important)
used options    > \startsetups *runtime:options
used options    > \stopsetups
used options    > % styles and modules
used options    > \startsetups *runtime:modules
used options    > \stopsetups
used options    > % done
used options    > \protect \endinput

system          > options > stop used options

(linewrap.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'vim'
(/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading         > Vim syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'filter'
(/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2012.04.18)
resolvers       > modules > loaded: 'module-catcodes'
(/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
resolvers       > modules > loaded: 'syntax-highlight'
(/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading         > Code syntax highlighting (ver: 2012.04.18)
resolvers       > modules > loaded: 'syntax-groups'
(/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading         > Syntax highlighting groups (ver: 2012.01.03)
resolvers       > modules > already loaded: 'module-catcodes'
)
resolvers       > modules > already loaded: 'filter'
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown: library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
(linewrap-temp-MATLAB-0.vimout
Overfull \hbox (42.89201pt too wide) in paragraph at lines 2--2
[][][]\3>modern-designsize-12pt-tt-tf-0--0 fprintf('random text random text random text: %g \n',(x_max-y_max)*z/random)[]  

\hbox(10.42677+4.05482)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\latelua0"_plib_.enhance("p:3")"
.\3>modern-designsize-12pt-tt-tf-0--0 f
.\3>modern-designsize-12pt-tt-tf-0--0 p
.etc.

)
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun': /home/context/tex/texmf-context/metapost/context/base/metafun.mpiv
backend         > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
 )</home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf></home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

system          > files > start used files

used files      >    1: filename=linewrap | filetype=tex | foundname=linewrap.tex | usedmethod=filesystem
used files      >    2: filename=cont-new.mkiv | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files      >    3: filename=linewrap.top | foundname=linewrap.top | usedmethod=direct
used files      >    4: filename=lang-us.lua | filetype=lua | foundname=/home/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files      >    5: filename=t-vim.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    6: filename=t-vim.tex | filetype=tex | format=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    7: filename=home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=qualified
used files      >    8: filename=t-filter.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >    9: filename=t-filter.mkiv | filetype=tex | format=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >   10: filename=home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=qualified
used files      >   11: filename=t-module-catcodes.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   12: filename=t-module-catcodes.tex | filetype=tex | format=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   13: filename=home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | foundname=/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=qualified
used files      >   14: filename=t-syntax-highlight.mkiv | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   15: filename=t-syntax-highlight.mkiv | filetype=tex | format=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   16: filename=home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=qualified
used files      >   17: filename=t-syntax-groups.tex | filetype=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   18: filename=t-syntax-groups.tex | filetype=tex | format=tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   19: filename=home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | foundname=/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=qualified
used files      >   20: filename=mkiv-base.map | filetype=map | format=map | foundname=/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files      >   21: filename=lm.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files      >   22: filename=lm-math.lfg | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files      >   23: filename=lm-math.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files      >   24: filename=lm-rm.map | filetype=map | format=map | foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files      >   25: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   26: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files      >   27: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files      >   28: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files      >   29: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files      >   30: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files      >   31: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files      >   32: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files      >   33: filename=stmary10.afm | filetype=afm | format=afm | foundname=/home/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files      >   34: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/home/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files      >   35: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files      >   36: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files      >   37: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files      >   38: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files      >   39: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files      >   40: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files      >   41: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files      >   42: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files      >   43: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files      >   44: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files      >   45: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files      >   46: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files      >   47: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files      >   48: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files      >   49: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files      >   50: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files      >   51: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files      >   52: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files      >   53: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   54: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files      >   55: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files      >   56: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/home/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files      >   57: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files      >   58: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files      >   59: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   60: filename=linewrap-temp-MATLAB-0.vimout | foundname=linewrap-temp-MATLAB-0.vimout | usedmethod=direct
used files      >   61: filename=lmmono12-regular | filetype=otf | format=otf | foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   62: filename=metafun.mpiv | filetype=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/metafun.mpiv | usedmethod=database
used files      >   63: filename=mp-base.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-base.mpiv | usedmethod=database
used files      >   64: filename=mp-tool.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-tool.mpiv | usedmethod=database
used files      >   65: filename=mp-mlib.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-mlib.mpiv | usedmethod=database
used files      >   66: filename=mp-page.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-page.mpiv | usedmethod=database
used files      >   67: filename=mp-butt.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-butt.mpiv | usedmethod=database
used files      >   68: filename=mp-shap.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-shap.mpiv | usedmethod=database
used files      >   69: filename=mp-grph.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-grph.mpiv | usedmethod=database
used files      >   70: filename=mp-grid.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-grid.mpiv | usedmethod=database
used files      >   71: filename=mp-form.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-form.mpiv | usedmethod=database
used files      >   72: filename=mp-figs.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-figs.mpiv | usedmethod=database
used files      >   73: filename=mp-func.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-func.mpiv | usedmethod=database
used files      >   74: filename=mp-abck.mpiv | filetype=mp | format=mp | foundname=/home/context/tex/texmf-context/metapost/context/base/mp-abck.mpiv | usedmethod=database
used files      >   75: filename=lpdf-pdx.xml | filetype=tex | foundname=/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: linewrap

system          > structure > stop used structure


mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats  > used cache path           - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats  > used cache path           - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats  > resource resolver         - loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 75 found files, scanned paths: 
mkiv lua stats  > stored bytecode data      - 303 modules, 65 tables, 368 chunks
mkiv lua stats  > cleaned up reserved nodes - 45 nodes, 10 lists of 436
mkiv lua stats  > node memory usage         - 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 417 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules        - 5 requested, 5 found (*-filter *-module-catcodes *-syntax-groups *-syntax-highlight *-vim), 0 missing
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > jobdata time              - 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks                 - 662 direct, 1937 indirect, 2599 total
mkiv lua stats  > randomizer                - resumed with value 0.72873865474422
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > positions                 - 7 collected, 2 regulars, 5 regions, 0 unresolved regions
mkiv lua stats  > result saved in file      - linewrap.pdf
mkiv lua stats  > loaded fonts              - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.295 seconds 
mkiv lua stats  > metapost processing time  - 0.003 seconds, loading: 0.027 seconds, execution: 0.002 seconds, n: 1
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 34153 of 65536 + 100000
mkiv lua stats  > current memory usage      - 45 MB (ctx: 46 MB)
mkiv lua stats  > runtime                   - 0.929 seconds, 1 processed pages, 1 shipped pages, 1.076 pages/second


[-- Attachment #3: linewrap.pdf --]
[-- Type: application/x-pdf, Size: 9116 bytes --]

[-- Attachment #4: linewrap.tex --]
[-- Type: application/x-tex, Size: 690 bytes --]

[-- Attachment #5: 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] 13+ messages in thread

* Re: missing pagebreak using vim-module for typing
  2012-05-06 18:30             ` Xenia
@ 2012-05-06 22:30               ` Aditya Mahajan
  0 siblings, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2012-05-06 22:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 6 May 2012, Xenia wrote:

>> \startsetups linebreak
>>   \language\minusone %disable hypenation
>>   \raggedright       %avoid overflow lines \stopsetups
>>
>> \unprotect
>> \setupsyntaxhighlighting
>>   [setups={syntaxhighlighting@setup,linebreak}]
>> \protect
>
> I am using your workaround and it works fine for most code-snippets.

I released a new version that incorporates this fix, so you no longer need 
to add this to your code.

> But with longer formulas, this fails. I am attaching a minimal example.

Currently, breaks only occur at spaces. So, in your example, there are no 
good linebreaks.

I released a new version that allows you some control over the linebreaks 
around each syntax group. You can add

\setupsyntaxgroup[after={\allowbreak}]

to allow a break after each syntaxgroup. If you prefer line breaks before 
a syntaxgroup, set

\setupsyntaxgroup[before={\allowbreak}]

Keep in mind that this may not result in good looking linebreaks. A better 
solution is to manually set linebreaks in your source code.

Aditya
___________________________________________________________________________________
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] 13+ messages in thread

end of thread, other threads:[~2012-05-06 22:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-01  6:02 missing pagebreak using vim-module for typing Xenia
2012-05-01  6:50 ` Aditya Mahajan
2012-05-01 10:24   ` Xenia
2012-05-01 11:02     ` Wolfgang Schuster
2012-05-01 16:14       ` Xenia
2012-05-01 16:53         ` Aditya Mahajan
2012-05-01 17:35           ` Aditya Mahajan
2012-05-01 18:29             ` Hans Hagen
2012-05-01 18:46               ` Aditya Mahajan
2012-05-01 18:46             ` Wolfgang Schuster
2012-05-01 18:49               ` Aditya Mahajan
2012-05-06 18:30             ` Xenia
2012-05-06 22:30               ` Aditya Mahajan

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).