Re: [NTG-context] ConTeXt Meeting #7
Hi, On 05/11/2013 11:30 PM, Leo Arnold wrote: Hi there, will the registration open before the end of early bird discount? Sure, the registration will open this week so stayed tuned, there will be an announcement here on the list. Jano ___ 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 ___
Re: [NTG-context] Off-topic: Convert PDF to (Con/La)TeX
On Sun, May 12, 2013 at 4:32 PM, Xan dxpubl...@telefonica.net wrote: Hi, I just want to know if there is any tool to convert a pdf (generated by latex or context) to latex source or context source file. Does anyone have got an experience on that? I'm thinking about two alternatives: * libraries for reading like podofo and custom script for passing pdf context (text) to context commands * pass pdf to jpg, and apply http://detexify.kirelabs.org/**classify.htmlhttp://detexify.kirelabs.org/classify.htmlfor passing to tex symbols. For me it's vital to pass mathematical symbols like (\int) to tex symbol and not like utf-8 symbols. Thanks a lot, Xan. Have you seen the mudraw program of mupdf http://www.mupdf.com/ ? It has a -t switch that outputs txt and a -tt and -ttt switches that output xml. -- luigi ___ 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] Rotating vector graphics.
In context can I use a pdf graphic but rotate it 90 degrees? It is easy to convert it to bitmap and rotate it in Gimp or with ImageMagick but I would like to retain the vector format. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] Interlinespacing with arabic in natural tables
Hi, now the big problems with arabic fonts are solved, and other problems arises, see this code: \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 13 pt] % or amiri-regular.ttf \define[1]\Arab{\setupalign[r2l]\amiri#1} \showgrid \startsetups[arde] \setupTABLE[c][1][rightframe=on] \stopsetups \def\startarde {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]} \def\stoparde {\eTABLE} \define[2]\arde {\bTR \bTD #1\eTD \bTD \setupinterlinespace[line=5ex] \setupalign[left] \amiri \Arab{#2}\eTD \eTR} \starttext \startarde \arde{blub}{االلّهُمَّ إِنِّي أَسْأَلُكَ أَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ مِنَ الاَمْرِ المَحْتُومِ فِي الاَمْرِ الحَكِيمِ مِنَ القَضاء الَّذِي لايُرَدُّ وَلا يُبَدَّلُ أَنْ تَكْتُبَنِي مِنْ حُجَّاجِ بَيْتِكَ الحَرامِ المَبْرُورِ حَجُّهُمُ المَشْكُورِ سَعْيُهُمُ المَغْفُورُ ذُنُوبُهُمُ المُكَفَّرِ عَنْ سَيِّئاتِهِمْ، وَأَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ أَنْ تُطِيلَ عُمْرِي فِي خَيْرٍ وَعافِيَةٍ وَتُوَسِّعَ فِي رِزْقِي وَتَجْعَلَنِي مِمَّنْ تَنْتَصِرُ بِهِ لِدِينِكَ وَلاتَسْتَبْدِلْ بِي غَيْرِي إِلهِي وَقَفَ السَّائِلُونَ بِبابِكَ، وَلاذَ الفُقَراءُ بِجَنابِكَ وَوَقَفَتْ سَفِينَةُ المَساكِينِ عَلى ساحِلِ بَحْرِ جُودِكَ وَكَرَمِكَ يَرْجُونَ الجَوازَ إِلى ساحَةِ رَحْمَتِكَ وَنِعْمَتِكَ. إِلهِي إِنْ كُنْتَ لاتَرْحَمُ فِي هذا الشَّهْرِ الشَّرِيفِ إِلاّ مَنْ أَخْلَصَ لَكَ فِي صِيامِهِ وَقِيامِهِ فَمَنْ لِلْمُذْنِبِ المُقَصِّرِ إِذا غَرِقَ فِي بَحْرِ ذُنُوبِهِ وَآثامِهِ ؟ إِلهِي إِنْ كُنْتَ لاتَرْحَمُ إِلاّ المُطِيعِينَ فَمَنْ لِلْعاصِينَ ؟ وَإِنْ كُنْتَ لاتَقْبَلُ إِلاّ مِنَ العامِلِينَ فَمَنْ لِلْمُقَصِّرِينَ ؟ إِلهِي رَبِحَ الصَّائِمُونَ، وَفازَ القَائِمُونَ، وَنَجا المُخْلِصُونَ، وَنَحْنُ عَبِيدُكَ المُذْنِبُونَ. فَارْحَمْنا بِرَحْمَتِكَ، وَاعْتِقْنا مِنَ النَّارِ بِعَفْوِكَ، وَاغْفِرْ لَنا ذُنُوبَنا بِرَحْمَتِكَ. يا أَرْحَمَ الرَّاحِمِينَ } \stoparde \stoptext This is my default environment for setting with two languages (translations). On the right side, you see the problem with the arabic: The interlinespace. Between the first lines everything is ok, but then the interlinespace becomes smaller and smaller. Why? It is some issue of the table, because if I set the arabic text purely out of the table by \Arab{}, then there is no problem and all interlinespaces are the same. So where comes this from? Huseyin ___ 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 ___
Re: [NTG-context] Rotating vector graphics.
Try this: http://wiki.contextgarden.net/Using_Graphics#Rotating_images Huseyin ___ 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 ___
Re: [NTG-context] Rotating vector graphics.
In context can I use a pdf graphic but rotate it 90 degrees? \setupexternalfigures [location=default] \starttext \externalfigure [cow] [orientation=90] \stoptext Marco signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] Interlinespacing with arabic in natural tables
On 5/13/2013 2:27 PM, H. Özoguz wrote: Hi, now the big problems with arabic fonts are solved, and other problems arises, see this code: \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 13 pt] % or amiri-regular.ttf \define[1]\Arab{\setupalign[r2l]\amiri#1} \showgrid \startsetups[arde] \setupTABLE[c][1][rightframe=on] \stopsetups \def\startarde {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]} \def\stoparde {\eTABLE} \define[2]\arde {\bTR \bTD #1\eTD \bTD \setupinterlinespace[line=5ex] \setupalign[left] \amiri \Arab{#2}\eTD \eTR} \starttext \startarde \arde{blub}{االلّهُمَّ إِنِّي أَسْأَلُكَ أَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ مِنَ الاَمْرِ المَحْتُومِ فِي الاَمْرِ الحَكِيمِ مِنَ القَضاء الَّذِي لايُرَدُّ وَلا يُبَدَّلُ أَنْ تَكْتُبَنِي مِنْ حُجَّاجِ بَيْتِكَ الحَرامِ المَبْرُورِ حَجُّهُمُ المَشْكُورِ سَعْيُهُمُ المَغْفُورُ ذُنُوبُهُمُ المُكَفَّرِ عَنْ سَيِّئاتِهِمْ، وَأَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ أَنْ تُطِيلَ عُمْرِي فِي خَيْرٍ وَعافِيَةٍ وَتُوَسِّعَ فِي رِزْقِي وَتَجْعَلَنِي مِمَّنْ تَنْتَصِرُ بِهِ لِدِينِكَ وَلاتَسْتَبْدِلْ بِي غَيْرِي إِلهِي وَقَفَ السَّائِلُونَ بِبابِكَ، وَلاذَ الفُقَراءُ بِجَنابِكَ وَوَقَفَتْ سَفِينَةُ المَساكِينِ عَلى ساحِلِ بَحْرِ جُودِكَ وَكَرَمِكَ يَرْجُونَ الجَوازَ إِلى ساحَةِ رَحْمَتِكَ وَنِعْمَتِكَ. إِلهِي إِنْ كُنْتَ لاتَرْحَمُ فِي هذا الشَّهْرِ الشَّرِيفِ إِلاّ مَنْ أَخْلَصَ لَكَ فِي صِيامِهِ وَقِيامِهِ فَمَنْ لِلْمُذْنِبِ المُقَصِّرِ إِذا غَرِقَ فِي بَحْرِ ذُنُوبِهِ وَآثامِهِ ؟ إِلهِي إِنْ كُنْتَ لاتَرْحَمُ إِلاّ المُطِيعِينَ فَمَنْ لِلْعاصِينَ ؟ وَإِنْ كُنْتَ لاتَقْبَلُ إِلاّ مِنَ العامِلِينَ فَمَنْ لِلْمُقَصِّرِينَ ؟ إِلهِي رَبِحَ الصَّائِمُونَ، وَفازَ القَائِمُونَ، وَنَجا المُخْلِصُونَ، وَنَحْنُ عَبِيدُكَ المُذْنِبُونَ. فَارْحَمْنا بِرَحْمَتِكَ، وَاعْتِقْنا مِنَ النَّارِ بِعَفْوِكَ، وَاغْفِرْ لَنا ذُنُوبَنا بِرَحْمَتِكَ. يا أَرْحَمَ الرَّاحِمِينَ } \stoparde \stoptext This is my default environment for setting with two languages (translations). On the right side, you see the problem with the arabic: The interlinespace. Between the first lines everything is ok, but then the interlinespace becomes smaller and smaller. Why? It is some issue of the table, because if I set the arabic text purely out of the table by \Arab{}, then there is no problem and all interlinespaces are the same. So where comes this from? grouping i.e. the last par ends inside a group so the interlinespace is forgotten use \bTD \setupinterlinespace[line=5ex] \setupalign[left,l2r] \amiri #2 \par \eTD or better: \bTD[align=r2l,style={\amiri\setupinterlinespace[line=5ex]}] #2 \eTD -- - 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 ___
Re: [NTG-context] authoring for web and print - suggestions
I've always thought that TEI-Lite was a nice, general purpose xml markup. There is already an example of an XML stylesheet on the wiki. On Sat, May 11, 2013 at 7:29 AM, Martin Schröder mar...@oneiros.de wrote: 2013/5/11 Norbert Preining prein...@logic.at: Does anyone have experience with authoring for web and print. I.e., we want to maintain only one format and generate both web pages and printed documentation from it. Is there intrinsic or through addons support in ConteXt for this? Consider pandoc. But you probably need math. :-) Best Martin ___ 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 ___ ___ 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] Grid typesetting: aligning section to top of textarea
Dear list, I am making a foray into grid typesetting, and would like to align the top of my (possibly multi-line) section titles with the top of the textarea. I thought I could do that with \setuphead[subject][grid={broad,high}], but this is not working. I have tried nearly every other combination of grid keywords, and then tried them again with the subject wrapped in a framed. The It's in the details manual didn't provide help. I found an old e-mail by Honza, but that never got a reply. http://www.pragma-ade.com/general/manuals/details.pdf http://www.mail-archive.com/ntg-context@ntg.nl/msg58456.html I put an MWE below, and I have attached its output. If anybody has any clues for me, (or 'not currently available, you can stop trying'), I would be most grateful. Cheers, Sietse \setuppapersize[A5] %% Activate grid \setuplayout [grid=yes, width=middle, topspace=2\lineheight, height=31\lineheight, header=2\lineheight, footer=0\lineheight,] \setupbodyfont[schola,13pt] \definefont[AntykwaChapter][antykwatorunskaregular at 18pt]% %% If wrapping the subject in a framed is needed, this command does it \def\subjectcommand#1{% \framed[ frame=on, framecolor=blue, width=\textwidth, align=flushleft, offset=none, %% strut=no does not work %% so cancel out lineheight-fontsize diff with -toffset toffset=-4.5pt, %% This *should* mean: %% * take topmost line in framed as reference line %% * align top of reference line with external baseline. %% but grid=yes may disable that. location={top, hanging}, ]{\AntykwaChapter #1}} %% The head-specific grid setup comes here \setuphead[subject] [header=high, % no header; extend textarea into header area page=yes, %% Take the box, assume it is a snug fit of its contents, and align %% its top with the grid line above it? %% Seems to do nothing %% A tweak like '-3pt' ditto grid={fit,high}, textcommand=\subjectcommand, % textstyle=\AntykwaChapter, ] \showframe \showgrid \showstruts %% Example text \starttext \subject{The hoard of the gibbelins} The Gibbelins eat, as is well known, nothing less good than man. \startsubject[ title={How Nyth would have worked his art upon the gnoles}, marking=How Nuth would have worked his art, ] Despite the advertisements of rival firms, it is probable that every tradesman knows that nobody in business at the present time has a position equal to that of Mr. Nuth. \stopsubject \stoptext mwe-placesubject.pdf Description: Adobe PDF document ___ 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 ___