TransWikia.com

Indentation within a minipage, and noindent doesn't help

TeX - LaTeX Asked on January 22, 2021

I am getting an unwanted indentation within a minipage (marked with arrow in the image). How can I get rid of it? The noindent doesn’t help here.

enter image description here

MWE:

%XeLaTeX
documentclass[11pt]{scrbook}

usepackage{polyglossia}
    setdefaultlanguage{english}
    setotherlanguage{hebrew}
    newfontfamilyenglishfont{Times New Roman}
    newfontfamilyhebrewfont[Script=Hebrew]{Arial}
            
usepackage{expex}
 
newenvironment{trans}
{noindentbegin{minipage}[t]{.29textwidth}exdisplaynoexnostruttextenglish}
{xeend{minipage}hfill}

newenvironment{gloss}
{noindentbegin{minipage}[t]{.69textwidth}begin{hebrew}exbegingl}
{endglxeend{hebrew}end{minipage}}

begin{document}

begin{trans}
This text should not have an indent at the beginning.
end{trans}
begin{gloss}
gla אאאאא אאאאא אאאאא אאאאא אאאאא אאאאא אאאאא. //
glb aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa //
end{gloss}%

begin{trans}
I can't get rid of it, so I'm asking for your help.
end{trans}
begin{gloss}
gla אאאאא אאאאא אאאאא אאאאא אאאאא אאאאא אאאאא. //
glb aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa //
end{gloss}%

end{document}

EDIT:

*File List*
scrbook.cls 2019/10/12 v3.27 KOMA-Script document class (book)
scrkbase.sty 2019/10/12 v3.27 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2019/10/12 v3.27 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2019/10/12 v3.27 KOMA-Script package (loading files)
tocbasic.sty 2019/10/12 v3.27 KOMA-Script package (handling toc-files)
scrsize11pt.clo 2019/10/12 v3.27 KOMA-Script font size class option (11pt)
typearea.sty 2019/10/12 v3.27 KOMA-Script package (type area)
polyglossia.sty 2019/11/15 v1.46 Alternative to Babel for XeLaTeX and LuaLaT
eX
etoolbox.sty 2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
makecmds.sty 2009/09/03 v1.0a extra command making commands
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
fontspec.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX
xparse.sty 2019-10-11 L3 Experimental document command parser
expl3.sty 2019-11-07 L3 programming layer (loader)
expl3-code.tex 2019-11-07 L3 programming layer
l3deprecation.def 2019-04-06 v L3 Deprecated functions
l3backend-xdvipdfmx.def 2019-04-06 L3 backend support: xdvipdfmx
fontspec-xetex.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
tuenc.def 2018/08/11 v2.0j Standard LaTeX file
fontspec.cfg
ifluatex.sty 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
iftex.sty 2019/11/07 v1.0c TeX engine tests
ifxetex.sty 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
l3keys2e.sty 2019-10-11 LaTeX2e option processing using LaTeX3 keys
filehook.sty 2019/10/03 v0.6 Hooks for input files
filehook-scrlfile.sty 2011/01/03 v0.1 filehook patch for scrlfile package
gloss-latex.ldf polyglossia: module for default language
gloss-english.ldf polyglossia: module for english
gloss-hebrew.ldf polyglossia: module for hebrew
bidi.sty 2019/10/19 v35.10 Bidirectional typesetting in plain TeX and La
TeX
biditools.sty 2019/10/19 v1.10 Programming tools for bidi package
zref-abspage.sty 2019/11/29 v2.28 Module abspage for zref (HO)
zref-base.sty 2019/11/29 v2.28 Module base for zref (HO)
ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO)
auxhook.sty 2016/05/16 v1.4 Hooks for auxiliary files (HO)
atbegshi.sty 2016/06/09 v1.18 At begin shipout hook (HO)
ifpdf.sty 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.
latex-xetex-bidi.def 2019/03/03 v1.3.7 bidi adaptations for `latex.ltx' for
XeTeX engine
footnote-xetex-bidi.def 2017/08/09 v1.1 bidi footnote macros for XeTeX engin
e
tocbasic-xetex-bidi.def 2016/09/14 v0.2 bidi adaptations for tocbasic packag
e for XeTeX engine
scrbook-xetex-bidi.def 2017/06/09 v1.1 bidi adaptations for scrbook class fo
r XeTeX engine
loadingorder-xetex-bidi.def 2017/12/29 v0.97 making sure that bidi is the la
st package loaded
hebrewcal.sty 2015/04/17 v2.6 Hebrew calendar for polyglossia (adapted from
hebcal.sty in Babel)
cal-util.def
babel-hebrewalph.def 2010/03/02 Babel definitions for Hebrew numerals
Adapted from hebrew.ldf (2005/03/30 v2.3h)
expex.sty 5/1/2017 v5.1b LaTex wrapper for expex.tex (JF)
expex.tex 5/25/2017 v5.1b ExPex linguistics example formatter (JF)
***********

One Answer

I just post the screeshot here as demonstration. I use xetex in texlive 2020 to compile the origin file without any modification.

No leading space

Answered by lazyboy on January 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP