Centering a tabularx created thorugh a custom command

Centering a tabularx created thorugh a custom command

I have renewed the item command inside a new environment and I have added inside this environment a tabularx so that all items are properly aligned see images below. My issue is that I am unable to center the resulting tabularx inside the column of the page. I have tried to encapsule everything in a table environment and using the centering command, but none of this give the desired result or it doesnt keep the alignment of each item. Any ideas Here is what I currently have: And this is what I would like to achieve: The code of the main document is: TeX program xelatex documentclassclass begindocument beginfactlist itemSpanishGood level itemEnglishGood level itemFrenchIntermediate level endfactlist lipsum2-10 enddocument And the .cls class is: NeedsTeXFormatLaTeX2e ProvidesClassclass newcommandmyFontSize10.0 LoadClassfontsize myFontSize ptscrartcl setcountersecnumdepth-1 RequirePackagehmargin1cm,vmargin1cm,twocolumn,columnsep1cmgeometry RequirePackageenglishbabel RequirePackageetoolbox,tabularx,makecell,setspace,lipsum pagestyleempty setlengthparindent0pt newenvironmentfactlist newdimenunbaseline unbaselinedimexpr-baselinestretchbaselineskiprelax renewcommanditem2 textsc1 raggedright 2medskipunbaseline tabularx0.7linewidthrX endtabularx

Комментарии

Популярные сообщения из этого блога

Как преобразовать вертикальную запись в горизонтальную?

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

How to delete a folder in remote Windows from Linux