Look at the code below:

 % Preview source code

%% LyX 2.3.0 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
 breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.

% The following chunk fixes export with XeTeX.
% It is needed because polyglossia is used by default
% and \make@lr is only defined by babel.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
  {\begin{tcolorbox}[drop large lifted shadow=black,halign=center]




This is the result:

enter image description here

What Part I is not at the center like Simple?

Thank you!

  • 2
    \center is not a command with an argument; remove it and also the related braces; \newline is known to not work as maybe expected in a center context. By the way, loading mdframed with two methods doesn't make much sense; since tcolorbox is much more powerful than mdframed, it's probably better to avoid mdframed. – egreg Jul 29 '18 at 21:16
  • @egreg, yes, but sometimes mdframed is much more simple... This is why I prefer to load it also :) – heblyx Jul 30 '18 at 8:18

Use only

\begin{tcolorbox}[drop large lifted shadow=black,halign=center]

enter image description here

  • Thank you!! BTW when you say "Use only" what do you mean? To do it only at { } or to other thing? (Because I want to do with it more:) ) – heblyx Jul 29 '18 at 19:00
  • 1
    @heblyx, it means to use only that code inside tcolorbox. So, replace what is inside. The other part of your code has no relation with that. – Sigur Jul 29 '18 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.