Web Analytics

beampy

⭐ 60 stars Korean by hchauvet

Beampy Build Status codecov pypi python version pypi licence pypi download pypi beampy version

마스터 브랜치의 개발은 현재 중단된 상태이며, (긴급 버그 수정만 반영됩니다), 새로운 버전의 beampy는 아직 충분히 안정적이지 않은 dev 브랜치에서 개발 중입니다...

Beampy는 HTML5로 표시할 수 있는 svg 슬라이드쇼를 생성하는 파이썬 도구입니다 (Firefox와 Chromium에서 테스트됨) 슬라이드 크기는 Latex Beamer 문서처럼 고정되어 있습니다.

Beampy 프레젠테이션은 모든 내용을 내장한 하나의 html 파일만 출력합니다.

Beampy 테스트 프레젠테이션 보기 (소스는 examples/beampy_tests_modules.py*에 있음)

설치:

파이썬 패키지 인덱스에서:

pip install beampy-slideshow

See full installation documentation

A quick example :

from beampy import *

doc = document()

with slide(): maketitle('Beampy a tool to make simple presentation', ['H. Chauvet'])

with slide('Beampy test'): text(r'\href{#0}{Go to Title}') text(r'Use LaTeX to render text and $$\sqrt{10}$$', align='center')

with slide('Beampy test with animated layers'): text(r'\href{#0}{Go to Title}')[:] text(r'Use LaTeX to render text and $$\sqrt{10}$$', align='center')[1]

save('./simple_one.html')

#To save in pdf just change the above command to the following #save('./simple_one.pdf')

beampy_presentation.html

변경 로그:

0.5.5

(전체 이야기는 이슈 #18 참고), 이는 svg 내 라텍스 일부 누락을 발생시킴.

0.5.4

0.5.3

작은 수정 사항:

0.5.2

``python

# 50% of the currentwidth a = rectangle(width='50%', height=10)

# width/height relative to the a element b = rectangle(width=a.width/2+'2cm', height=a.height/'10pt') `

`python

a = rectangle(width='50%', height=10)

b = rectangle(x=a.width+'2cm', y=a.height+5) `

`python

a = rectangle(x='center', y='center', width=50, height=50) b = rectangle(x='center', y='center', width=a.height+100, height=a.height+100, color='red')

# Make b appears below a b.below(a) # equivalent to a.above(b) or a.last() or b.first() `

0.5.1

0.5.0

  • 그룹을 꾸미기 위한 box 함수 추가
  • 컨텍스트 매니저를 사용하여 프레젠테이션 내 텍스트 작성하는 새로운 실험적 방법 추가
`python with text(width=400): """ Any comment inside the context manager will be passed to the text function as input argument. This allows clearer source when writing long texts.

No more need to add an r before to protect the text passed to latex, it's now automatically added. """ `

0.4.9

0.4.8

0.4.7

레이어는 Beampy 모듈에서 파이썬 슬라이싱으로 관리됨

`python with slide('Test layers'): text('First printed on layer 0') text('Secondly printed on layer 1')[1] text('Printed from layer 2 to 3')[2,3] text('Printed on all layers')[:] text('Printed on layer 4')[4] with group(width=300)[2:]: text('Printed inside group') text('for layers 2 to end') `

0.4.6

`python with group(): text('toto') with group(width=300): text('tata')

with group(width=200): figure('./niceplot.pdf') text('nice legend') `

`python with group(width=200): figure('./niceplot.pdf') text('nice legend') # Figure and text width will be automatically set to 200 px `

  • 상대 위치 지정이 이제 자동 위치 지정된 요소에 대해 수행될 수 있습니다
`python t0 = text('toto') text('tata', x=t0.center + center(0), t0.bottom + 0.1) ` 비디오는 이제 외부 링크(embedded=True* 사용)를 사용할 수 있으며, html 파일에 포함되지 않습니다. 슬라이드가 화면에 표시될 때 비디오는 디스크에서 로드됩니다(파일 경로에 주의).

0.4.5

  • 모든 텍스트는 단일 latex 파일에서 전처리됩니다 (Latex는 한 번만 호출되어 컴파일 시간을 개선함)
  • 캐시 버그 수정: 비디오와 svg가 이제 올바르게 캐시됩니다

0.4.4

  • 캐시 개선: 요소별로 하나의 파일만 캐시(캐시를 두 번 쓰지 않음!)
  • Svg: 선과 사각형 명령어 추가로 선과 사각형을 쉽게 그릴 수 있음
  • 상대 위치 지정: 현재 요소의 앵커를 변경하는 단축키 center(shift), right(shift), bottom(shift) 추가
`python e1 = text('Somthing', x=0.2, y=0.4) e2 = text('An other thing', x=e1.left + right(0.1), y=e1.center + center(0)) ``

0.4.3

Matplotlib 그림을 이제 figure()에 직접 전달할 수 있으며, matplotlib 그림 목록을 animatesvg()*로 애니메이션화할 수 있습니다.

0.4.2

슬라이드에 원시 svg를 포함하는 svg* 명령어 추가

0.4.1

설치

Beampy 문서 설치 페이지 보기

--- Tranlated By Open Ai Tx | Last indexed: 2026-06-05 ---