Re: [NTG-context] Broken Index Behavior?
Thanks Luigi. I am getting the "correct" results on my local workstation as well. However, when working on an installation on a Amazon Linux EC2 instance, the index refuses to aggregate the results. This even happens if i copy my entire ConTeXt directory to the Amazon Linux machine verbatim. I have also tried the latest ConText version and get the same weird results. I am convinced that this has something to with the environment and not the installation itself, but I don't know where to look anymore. I am out of ideas. I have: - Disabled SELinux - Copied files from known working installation - Installed latest versions - chmod everything 777 Any ideas on where to look would still be appreciated. Thanks - brian ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Broken Index Behavior?
I put ConTeXt on a new server. It works fine except that it is not aggregating index results. I have isolated it to a single line, but i do not understand why it breaks indexing. Feedback from anybody would be immensely helpful. I have already spent way too much time figuring this out. %Minimal example: % ConTeXt ver: 2017.05.15 21:48 MKII fmt: 2017.8.17 int: english/english \enableregime[utf] \starttext \index{Aardvark}Aardvark \index{Baboon}Baboon \index{Camel}Camel \pagebreak \index{Baboon}Baboon \placeindex[compress=yes] \stoptext Outputs Index like this: A Aardvark 1 B Baboon 1 C Camel 1 B Baboon 2 and issues warning when compiling: references : duplicate reference [][Index:b] on page 2 However, if i remove this line, it works fine: \enableregime[utf] I need that line to be able to handle diacritics in the text however. I cannot upgrade to mkIV yet as there is a complex toolchain involved. Running this example with the same installation files and same input returns different results when run on my local workstation versus this new machine i am working on. It also works fine on the live.contextgarden.net tool. Can anyone think of a reason why adding "\enableregime[utf]" would break the index aggregator? File permissions? Missing tool? Something wrong with fonts? Some other context-sensitive misconfiguration? Any help would be appreciated. Thanks a bunch. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF8 / TeXUtils parsing error
I updated Ruby to the latest and greatest beta but have the same results: TeXUtils does not function correctly when processing .tui files, likely due to character encoding issues in Ruby. I'm running Ruby 1.9.2 and this seems to be the problem. 1.8.7 was working fine on other machines. There are evidently large changes in Ruby API and string handling and character encoding in upgrading from 1.8.x - 1.9.x. I'm making the assumption that the only way to handle this is to downgrade Ruby. Are there any alternatives? Thanks for your help again! ___ 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 ___
[NTG-context] UTF8 / TeXUtils parsing error
Minimal example: \enableregime[utf] \defineregister[Index][Indeces] \starttext \Index{x}x. \pagebreak \placeIndex \stoptext When compiling, TeXUtils has a heart attack: . . . TeXUtil | parsing file filename.tui TeXUtil | fatal error in plugin (processing): invalid multibyte escape contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:204:in `prepare' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:886:in `block in processor' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in `each' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in `processor' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:127:in `block in processors' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in `each' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in `processors' contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1060:in `processed' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1667:in `block in runtexutil' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in `each' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in `runtexutil' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1981:in `processfile' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1149:in `block (2 levels) in processtex' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1139:in `timedrun' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1148:in `block in processtex' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in `each' contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in `processtex' contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:66:in `process' contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:56:in `main' contextroot/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in `execute' contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:795:in `main' This causes cumulative errors on each iteration with repeating indices. The culprit is \enableregime[utf]. It works fine with TeXLive2010 on Linux, but not on a ConTeXt Minimals (stable) installation on FreeBSD. I'm assuming I haven't installed something correctly. \contextversion outputs 2010.07.30 11:35 Any thoughts? This one is over my head. Thanks! Your help is very much appreciated ___ 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 ___
[NTG-context] Titles that spill out
Here is a simple section header. It runs way out of the margin. Any idea why? I do not want hyphenation. Words that run over the boundary should be skipped to the next line down. Why does it not do that here? Also note that if i change flushleft to middle, it works fine (except that i don't want it middle-aligned!) \setuphead[section][align={flushleft,nothyphenated}] \starttext \showgrid \section{XXX XX XXX XX XXX XXX XXX} \stoptext % Here's another similar example: \setuplayout[ width=6.5in ] \setupbodyfont[ 10pt,rm ] \definebodyfont [10pt] [rm] [ hh=Regular sa 1.85 ] \setupheads[ align={flushleft,nothyphenated}, tolerance=strict ] \setuphead[section][ number=no, textstyle=\hh ] \starttext \showgrid \section{XXX XX XX XXX XX XXX XXX} \stoptext Thanks for your help. ___ 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 ___
[NTG-context] Access figure data?
Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. [I am trying to typeset a mass of html-based documents with images using a series of scripts. The images need to be positioned somewhat like they would be on the screen. However, the html itself carries no info about the image.] ___ 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 ___
[NTG-context] Headers must not be the last object on the page
I'm getting headers as the last item on a page. Following content appears on the next page. I would like to have headers not be separated from their content by a page break. Is there a way to say if a header is the last thing on the page, place it on the next page instead? I am aware of the before={\testpage[n]\blank} trick, but this only applies when you need a specific amount of lines. Because the following content may be a figure, float, table, or other large object, the space required will vary. I just want the header to know that it must not be the last object on the page. Is this possible? Thank you very much for your help. ___ 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 ___
[NTG-context] Paragraphs that start with formatting fail to wrap around floats
I found what appears to be a bug. I can't find any documentation on it. If i'm doing something wrong, i would really appreciate it if someone would tell me so. Otherwise, please tell me it is a bug so i can stop pulling my hair out. If a paragraph starts with anything but plain text, it will not honor floating objects and will run over them. Here is an example: \starttext \placefigure[right,here]{none}{\framed[width=0.3\textwidth,height=0.3\textwidth]{Floating Thingoid}} {\bf T}his simple paragraph does not wrap around the floated figure. You can see it starts with a single boldface command.x xxx xxx x x xx x xx \bf{T}his paragraph will also not honor the float. It has an alternate form of the boldface command And yet this paragraph will. It starts with just plain text. xxx xxx x x xx x. xxx xxx x x xx x xxx xxx x x xx x xxx xxx x x xx x. \stoptext Any feedback or advice would be greatly appreciated. [and if i'm posting this in the wrong place, please advise. I could not find any info on submitting or reviewing bug reports. ] Thanks! - lev ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___