Как установить цветовую тему латексного проектора

Я хотел бы использовать цветовую тему совы (https://github.com/rchurchley/beamercolortheme-owl) в моей презентации LaTeX beamer. Я новичок как в LaTeX, так и в проекторе, и у меня новая установка Miktex. Я на Виндовс 7.

Я пытаюсь следовать инструкциям здесь: https://github.com/rchurchley/beamercolortheme-owl/blob/master/README.md

Когда я пытаюсь скомпилировать beamercolorthemeowl.ins в TexStudio, я получаю сообщение об ошибке: Не удалось запустить компилятор по умолчанию:PdfLaTeX: pdflatex.exe -synctex=1 -interaction=nonstopmode "beamercolorthemeowl".tex.

Я могу скомпилировать другие файлы в TexStudio. Это моя презентация луча компилируется с темой по умолчанию.

Когда я пытаюсь скомпилировать beamercolorthemeowl.ins в TeXworks, я получаю сообщение в «Выводе консоли», в котором говорится:

)

Создание файла(ов) ./beamercolorthemeowl.sty ! Не удается найти файл beamercolorthemeowl.dtx. \readsource ...не найти файл \uptospace #1 \qStop } \else \processedLines \z@ ... l.41 } ?

и программа просто занята целую вечность и ничего не происходит.

Файл beamercolorthemeowl.dtx находится в том же каталоге, что и beamercolorthemeowl.ins, поэтому я не понимаю, почему он не может его найти.

Любые предложения о том, что делать дальше?


person brb    schedule 21.11.2019    source источник


Ответы (1)


Texstudio пытается быть умным и добавляет неправильный тип файла. Запуск latex beamercolorthemeowl.ins напрямую создаст следующий файл beamercolorthemeowl.sty:

%%
%% This is file `beamercolorthemeowl.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamercolorthemeowl.dtx  (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2016 Ross Churchley. Contributions to this package are welcome at
%% 
%%     https://github.com/rchurchley/beamercolortheme-owl
%% 
%% This work may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version. The latest version of this
%% license is in:
%% 
%%     http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{beamercolorthemeowl}
    [2016/03/15 v0.1.1 A visible colour theme for Beamer presentations]
  \RequirePackage{etoolbox}
  \newtoggle{snowy}
  \newtoggle{cautious}
  \@ifclassloaded{beamer}{
    \DeclareOptionBeamer{snowy}{\toggletrue{snowy}}
    \DeclareOptionBeamer{cautious}{\toggletrue{cautious}}
    \ProcessOptionsBeamer
  }{}
  \@ifclassloaded{beamer}{
    \iftoggle{snowy}{
      \setbeamercolor{normal text}{fg=black, bg=white}
    }{
      \setbeamercolor{normal text}{fg=white, bg=black}
    }
  }{}
  \RequirePackage{xcolor}
  \definecolor{OwlRed}{RGB}{    255,  92, 168}
  \definecolor{OwlGreen}{RGB}{   90, 168,   0}
  \definecolor{OwlBlue}{RGB}{     0, 152, 233}
  \definecolor{OwlYellow}{RGB}{ 242, 147,  24}
  \colorlet{OwlViolet}{OwlRed!50!OwlBlue}
  \colorlet{OwlBrown}{OwlRed!50!OwlGreen}
  \colorlet{OwlOrange}{OwlRed!50!OwlYellow}
  \colorlet{OwlCyan}{OwlGreen!50!OwlBlue}
\iftoggle{cautious}{}{
  \colorlet{red}{OwlRed}
  \colorlet{green}{OwlGreen}
  \colorlet{blue}{OwlBlue}
  \colorlet{yellow}{OwlYellow}
  \colorlet{violet}{OwlViolet}
  \colorlet{brown}{OwlBrown}
  \colorlet{orange}{OwlOrange}
  \colorlet{cyan}{OwlCyan}
}
  \@ifclassloaded{beamer}{
    \setbeamercolor*{alerted text}{
      fg=OwlRed
    }
    \setbeamercolor*{example text}{
      fg=OwlGreen
    }
    \setbeamercolor*{title}{
      use=normal text,
      fg=normal text.fg
    }
    \setbeamercolor*{title in sidebar}{
      use=normal text,
      fg=normal text.fg
    }
    \setbeamercolor*{titlelike}{
      use=normal text,
      parent=normal text.fg
    }
    \setbeamercolor*{author}{
      use=normal text,
      parent=normal text.fg
    }
    \setbeamercolor*{date}{
      use=normal text,
      parent=normal text.fg
    }
    \setbeamercolor*{institute}{
      use=normal text,
      parent=normal text.fg
    }
    \setbeamercolor*{structure}{
      use=normal text,
      fg=normal text.fg!50!normal text.bg
    }
    \setbeamercolor*{palette primary}{
      use=normal text,
      fg=normal text.fg!90!normal text.bg,
      bg=normal text.bg!90!normal text.fg
    }
    \setbeamercolor*{palette secondary}{
      use=normal text,
      fg=alerted text.fg!75!normal text.bg,
      bg=normal text.bg!90!normal text.fg
    }
    \setbeamercolor*{palette tertiary}{
      use=normal text,
      fg=example text.fg!75!normal text.bg,
      bg=normal text.bg!90!normal text.fg
    }
    \setbeamercolor*{palette quaternary}{
      use=normal text,
      fg=normal text.fg!75!normal text.bg,
      bg=normal text.bg!90!normal text.fg
    }
    \setbeamercolor*{sidebar}{
      use=normal text,
      fg=normal text.fg!80!normal text.bg,
      bg=normal text.bg!80!normal text.fg
    }
    \setbeamercolor*{palette sidebar primary}{
      use=palette primary,
      parent=palette primary
    }
    \setbeamercolor*{palette sidebar secondary}{
      use=palette primary,
      parent=palette primary
    }
    \setbeamercolor*{palette sidebar tertiary}{
      use=palette quaternary,
      parent=palette quaternary
    }
    \setbeamercolor*{palette sidebar quaternary}{
      use=palette quaternary,
      parent=palette quaternary
    }
    \setbeamercolor*{frametitle}{
      use=palette primary,
      parent=palette primary
    }
    \setbeamercolor*{block title}{
      use=normal text,
      fg=normal text.fg,
      bg=
    }
    \setbeamercolor{block body}{
      bg=
    }
    \setbeamercolor*{block title alerted}{%
        use={block title, alerted text},
        fg=alerted text.fg,
        bg=block title.bg
    }
    \setbeamercolor*{block title example}{%
        use={block title, example text},
        fg=example text.fg,
        bg=block title.bg
    }
    \setbeamercolor*{block body alerted}{
      use=block body,
      parent=block body
    }
    \setbeamercolor*{block body example}{
      use=block body,
      parent=block body
    }
    \def\beamer@themerounded@shadow{false}
    \setbeamertemplate{navigation symbols}{}
  }{}
\endinput
%%
%% End of file `beamercolorthemeowl.sty'.
person samcarter_is_at_topanswers.xyz    schedule 21.11.2019
comment
Спасибо, Сэм, это здорово. Для таких людей, как я, которые не особенно разбираются в компьютерах, чтобы «запустить напрямую» в системе Windows: откройте командную строку ›› перейдите в соответствующий каталог (cd для изменения каталога) ›› в командной строке введите: latex beamercolorthemeowl. входы Как сказали бы французы, вуаля! - person brb; 22.11.2019