langsci / 177

Chinese version of the English text book on grammatical theory
7 stars 1 forks source link

The indentation of the first line of each paragraph in furtherreading does not occupy two characters space #3200

Closed hettylulu closed 4 years ago

hettylulu commented 4 years ago

![Uploading 截屏2020-08-21 上午11.50.45.png…]()

It is shown above the first line is indented with less than two characters space. But in Chinese, the text should be indented with two characters @stefan11

The network is not well, and I will upload the picture later.

kopeckyf commented 4 years ago

In tcolorbox, the parindent has to be adjusted manually. You can do so in the file langsci-tbls:

https://github.com/langsci/177/blob/0c17b0c15f4c9efac3a97c91fec0637661c8be77/langsci-tbls.sty#L33

stefan11 commented 4 years ago

Yes, I also found this. But I did not manage to do this in my load files. I think it is not an option to edit langsci-tbls.sty every time I need a different parindent. Or is this the way to go.

kopeckyf commented 4 years ago

What's a "load file"?

I think it is not an option to edit langsci-tbls.sty every time I need a different parindent

How often do you need a different parindent? You're generally not supposed to change lengths and other pre-defined settings, Chinese typography being the one exception that we have so far encountered.

stefan11 commented 4 years ago

I have a special customization file localpackages-chinese.tex in which all the stuff happens that is specific to Chinese. I think having a copy of langsci-tbls.sty around only to be able to change the \parindent is not good style, is it?

kopeckyf commented 4 years ago

Easy: after loading langsci-tbls, customise the before upper setting using \tcbset:

\makeatletter
  \tcbset{before upper = {\parindent=20.95pt\@afterheading\@afterindentfalse}}
\makeatother
stefan11 commented 4 years ago

Thanks! I somehow tried to do this in the if condition where you tested which version of tlbs I loaded.