[NTG-context] Overfull hbox issues: different font,

2019-09-03 Thread Julian G
Hello everyone,
I apologize if this has been brought up already (or if my mistake is painfully 
obvious), but I'm having a slight issue with overfull hboxes. I think it is 
connected to hyphenation and/or using different fonts.

Test file: at the end of this mail or at 
https://gist.github.com/JulianGmp/fe20df633554f5aff02e02eb47a6780f
The output PDF I got: https://i.imgur.com/c8S7Di5.png

Best regards,
Julian



% Compiled document (screenshot):
% https://i.imgur.com/c8S7Di5.png

\setuppapersize[A4]
\showframe

\setuplayout[
topspace=1cm,
header=0cm,
width=16cm,
footer=0cm,
bottom=1cm,
]

\definefontfamily[arialFamily]   [sans]  [Arial]
\definefontfamily[calibriFamily] [sans]  [Calibri]
% \setupbodyfont[myfontfamily, 12pt]

\define\printExample{Es kann allerdings ein Problem auftreten: Es ist nicht 
immer eindeutig, ob die gemessen Phasenerschiebung eine komplette Umdrehung 
enthaltem. Angenommen sei eine gemessene Verschiebung von \m{\Delta_{\varphi}}, 
visualisiert in Abbildung 10 ... \blank[small] Zwar wird dadurch eine gewisse 
Übersicht geschaffen, jedoch werden potentielle Namens-
konflikte nicht verhindert.}

\starttext

\language[de]


\section{Standard Font}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}


\switchtobodyfont[arialFamily, 12pt]
\section{Arial 12pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\page

\switchtobodyfont[calibriFamily, 14pt]
\section{Calibri 14pt}
\subsection{German}
\language[de] \printExample{}
\subsection{English}
\language[en] \printExample{}

\stoptext
___
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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Julian G
On Monday, 2 September 2019 20:47, Hans Hagen  wrote:

> On 9/2/2019 7:35 PM, Jeong Dal wrote:
>
> > Dear Hans,
> >
> > > > But I cannot see any syntax coloring and don’t know how to compile a
> > > > TeX file.
> > > > Would you please help me more?
> > > > I think you also need to choose the context color scheme
> >
> > Yes, syntax coloring works after choosing the context color scheme.
> > I find a following task file to compile a file from vscode, but it
> > doesn’t work.
> > Here is the error message:
> > /bin/bash: context: command not found
> > The terminal process terminated with exit code: 127
> > %
> > {
> > // See https://go.microsoft.com/fwlink/?LinkId=
> > http://go.microsoft.com/fwlink/?LinkId=733558
> > // for the documentation about the tasks.json format
> > "version": "2.0.0",
> > "tasks": [
> > {
> > "label": "ConTeXt build",
> > "type": "shell",
> > // Keep in mind that the file path here has to be changed
> > "command": "context myfile.tex",
> > "group": {
> > "kind": "build",
> > "isDefault": true
> > // Since we set this task to the default build task, you can
> > // run it with a keyboard shortcut (Ctrl+Shift+B by default)
> > }
> > }
> > ]
> > }
> > %%%
> > i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.
>
> you probably need to set the path before you start the editor
>
> Hans
>
>
> -
>
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net

Hello,

I tried searching for that file but didn't find it, there's also no "vscode" 
script listed when running "mtxrun --script"

I installed using texlive on windows, is the script only shipped on the 
standalone installation?


If it's possible to create a fully fledged ConTeXt extension for vscode with 
these files, I would try to create it. I'm not that experienced with 
javascript, but I think I should be able to get some stuff done. You could also 
utlize some code from the existing LaTeX workshop extension ( 
https://github.com/James-Yu/LaTeX-Workshop ), since it features a pdf preview 
with working synctex.

Best regards,
Julian
___
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
___