タグ

macroに関するkirakkingのブックマーク (4)

  • \relax の使い方 12連発 - 0番染色体


     TeX LaTeX Advent Calendar 2015 2稿ZR  p_typo  \relax TeX  [1] \relax (La)TeX  \relax  \relax \relax \relax \relax \relax  \relax   \relax Te
    \relax の使い方 12連発 - 0番染色体
  • Macros

    Example[] Given some data like the following: one first example two second example three third example four fourth example suppose you want to change the data to make a dictionary for a Python program, with this result: data = { 'one': 'first example', 'two': 'second example', 'three': 'third example', 'four': 'fourth example', } To do this, record a macro while changing the first line. Then, play

    Macros
    kirakking
    kirakking 2015/02/17
    マクロの内容を表示するときは :echo @x (x は マクロのレジスタ名)
  • PythonでLibreOfficeのマクロ | My note

    LibreOfficeのマクロはLibreOffice BASICが標準ですが、Pythonを使ってマクロを書くこともできます。 LibreOffice Calcの簡単なサンプル シートとセルを選択して値を読み書きするだけのスクリプトです。 def sample(): ここで定義する名前がLibreOffice Calc上でも表示されることになります。 doc = XSCRIPTCONTEXT.getDocument() シートの選択 名前から選択する場合 sheet = doc.getSheets().getByName('Sheet1') インデックスから選択する場合 sheet = doc.getSheets().getByIndex(0) アクティブシートを選択する場合 sheet = doc.CurrentController.getActiveSheet() 値の読み書き(数値

    PythonでLibreOfficeのマクロ | My note
  • Ubuntu 12.04のLibreOffice(openoffice)とpython: ドトヒコのカクカクワールド2D


    OpenOfficeLibreOffice Draw LibreOffice Basic使  使 python使python  Openoffice Basic  LibreofficeBasicIDE Python
    kirakking
    kirakking 2014/02/02
    Ubuntu 13.10だとlibreoffice-script-provider-pythonのインストールでいけた。
  • 1