public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: "Priv.-Doz. Dr. Maria Shinoto"
	<maria.shinoto-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>,
	pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Re (workaround?): CJK fonts and fontsize do not change from YAML metadata
Date: Fri, 14 Dec 2018 11:28:21 -0800	[thread overview]
Message-ID: <yh480kbm5nc3hm.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <2A7F9337-7250-4776-A69A-68D7ADAB2C5E-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>


Try

---
CJKoptions: 'Scale=0.95'
...

"Priv.-Doz. Dr. Maria Shinoto"
<maria.shinoto-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org> writes:

> Hi, 
>
> after all, I tried a bit harder. The problem seems to be with Latex. 
>
> CJK fonts are not set by pt size but by scale, and it seems that they are scaled smaller than 1.0 by default. 
>
> Therefore, a document set to 12pt needs a scale to 0.9 or 1.0 in order to be readable in Japanese as well. Here are the important lines in Latex: 
>
> ```
> \documentclass[12pt,english,]{article}
> ...
> \setmainfont[Scale=1.0]{Gentium Basic} # Scale may be left blank, same result
> ...
> \ifxetex
>     \usepackage{xeCJK}
>     \setCJKmainfont[Scale=0.95]{IPAexMincho}
>   \fi
>   \ifluatex
>     \usepackage[]{luatexja-fontspec}
>     \setmainjfont[]{IPAexMincho} # did not check luatex
> ```
>
> The small font scale may be due to the default template (this is from Beamer): 
>
> ```
>   \usepackage{fontspec,xltxtra,xunicode}
>   \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
> \else
>   \ifluatex
>     \usepackage{fontspec}
>     \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
>   \else
>     \usepackage[utf8]{inputenc}
>   \fi
> \fi
> ```
>
> The `Scale=MatchLowercase` is certainly too small. 
>
>
>
> QUESTION or FEATURE REQUEST: How can I set the scale in the YAML metadata?
>
>
> Best, 
> Maria S. 
>
>
>
>
>
>> Am 2018-12-14 um 16:45 schrieb Priv.-Doz. Dr. Maria Shinoto <maria.shinoto-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>:
>> 
>> Hi, 
>> 
>> the fontsize is the only problem, I was puzzled myself about the font face, but that was an accidental mistake. 
>> 
>> So: I cannot set the fontsize with YAML metadata for Japanese to PDF. 
>> 
>> Thanks again, 
>> Maria Shinoto
>> 
>> 
>>> Am 2018-12-14 um 16:32 schrieb Priv.-Doz. Dr. Maria Shinoto <maria.shinoto-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>:
>>> 
>>> Hi, 
>>> 
>>> this is a problem that I encounter since long ago: 
>>> 
>>> When I set CJK font in the YAML metadata (e.g. CJKmainfont: "Hiragino Mincho ProN") or the fontsize (fontsize: 24pt) nothing happens. The small default font size and a fallback Japanese minchō font will be used. Linestretch on the other hand (linestretch: 1.25) works fine, as well as the other mainfonts etc. do.
>>> 
>>> I am working with Pandoc 2.2.3.2, but the problem has always been there. 
>>> 
>>> I use the default template, i.e., I do not mention a template in the YAML meta data or in the pandoc command.
>>> 
>>> My Latex is 2017, but it happened with earlier versions as well.
>>> 
>>> The xecjk package is installed.
>>> 
>>> Any hint to the right direction is welcome!
>>> 
>>> 
>>> Maria
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/C15A2447-87C5-4404-8D8C-DD5606BAF72A%40zaw.uni-heidelberg.de.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/96351CA7-D11A-4BB1-A048-00F014D05314%40zaw.uni-heidelberg.de.
>> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2A7F9337-7250-4776-A69A-68D7ADAB2C5E%40zaw.uni-heidelberg.de.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/yh480kbm5nc3hm.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2018-12-14 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-14  7:32 Priv.-Doz. Dr. Maria Shinoto
     [not found] ` <C15A2447-87C5-4404-8D8C-DD5606BAF72A-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>
2018-12-14  7:45   ` Priv.-Doz. Dr. Maria Shinoto
     [not found]     ` <96351CA7-D11A-4BB1-A048-00F014D05314-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>
2018-12-14  8:32       ` Re (workaround?): " Priv.-Doz. Dr. Maria Shinoto
     [not found]         ` <2A7F9337-7250-4776-A69A-68D7ADAB2C5E-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org>
2018-12-14 19:28           ` John MacFarlane [this message]
     [not found]             ` <yh480kbm5nc3hm.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-12-15  1:50               ` Priv.-Doz. Dr. Maria Shinoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yh480kbm5nc3hm.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=maria.shinoto-7M2J4GrLiDedPOQpRHQ53DeJuz7u0hKX@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).